Element: Pie Chart

This element can be used to create pie charts. You can set the values for the chart in the contentDock® Management System manually or you connect them to DataContainer tables. The pie chart element uses the sub-element chart legend, that uses own styles for the presentation.

Sample App

You can test this element with sample styles directly in the public area of the contentDock® Viewer App. You can also load these sample styles from the Template Library into your user account and import them into your app project.

Styles

  • Background
    Color
    Contentdock color help
    Defines the color of the element background. Possible values are hexadecimal and of RGBA color values.

    The hexadecimal color system uses three sequently hexadecimal numbers, each representing one color of the RGB color space. Example: #ffffff for the color white.

    The RGBA color system has been extended by the RGB system with an alpha value for transparencies. Example: rgba (255,255,255,0.5) for the color white with an alpha value of 0.5.

    Preset system value

    This value is used if no style is defined for this element.

    rgba(255,255,255,0)

    Image
    Contentdock background image help
    Defines the background image for the element. The image is scaled in the element.
  • Border
    Height
    Contentdock pie chart border height help
    Defines the thickness of the border in pixels surrounding the element. The value is set individually in an input field.

    Please note that only integers are entered. A "px" need not be captured.

    Preset system value

    This value is used if no style is defined for this element.

    0

    Radius
    Contentdock pie chart border radius help
    Defines the radius of the border in pixels used in the element corners. The value is set individually in an input field.

    Please note that only integers are entered. A "px" need not be captured.

    Preset system value

    This value is used if no style is defined for this element.

    0

    Color
    Contentdock color help
    Defines the color of the element border. Possible values are hexadecimal and of RGBA color values.

    The hexadecimal color system uses three sequently hexadecimal numbers, each representing one color of the RGB color space. Example: #ffffff for the color white.

    The RGBA color system has been extended by the RGB system with an alpha value for transparencies. Example: rgba (255,255,255,0.5) for the color white with an alpha value of 0.5.

    Preset system value

    This value is used if no style is defined for this element.

    rgba(255,255,255,0)

    Position
    Contentdock pie chart border position help
    Specify the position of the border. The border always encloses the element, but you can choose in which direction the border will be drawn.

    Possible values are:

    Inside: The border is drawn inside.

    Outside: The border is drawn outside.

    Preset system value

    This value is used if no style is defined for this element.

    inner

  • Chart graphic
    Border height
    Contentdock pie chart border around pie help
    Defines the thickness of the border in pixels surrounding the pie chart.

    Preset system value

    This value is used if no style is defined for this element.

    10

    Border color
    Contentdock color help
    Defines the color of the pie chart border. Possible values are hexadecimal and of RGBA color values.

    The hexadecimal color system uses three sequently hexadecimal numbers, each representing one color of the RGB color space. Example: #ffffff for the color white.

    The RGBA color system has been extended by the RGB system with an alpha value for transparencies. Example: rgba (255,255,255,0.5) for the color white with an alpha value of 0.5.

    Preset system value

    This value is used if no style is defined for this element.

    #ffffff

    Radius for circle in the center
    Contentdock pie chart center circle radius help
    Defines the radius of the circle in the center of the pie chart.

    Preset system value

    This value is used if no style is defined for this element.

    50

    Color for circle in the center
    Contentdock color help
    Defines the color of the circle in the center of the pie chart. Possible values are hexadecimal and of RGBA color values.

    The hexadecimal color system uses three sequently hexadecimal numbers, each representing one color of the RGB color space. Example: #ffffff for the color white.

    The RGBA color system has been extended by the RGB system with an alpha value for transparencies. Example: rgba (255,255,255,0.5) for the color white with an alpha value of 0.5.

    Preset system value

    This value is used if no style is defined for this element.

    rgba(255,255,255,0)

    Width of the space between the circle segments
    Contentdock pie chart segment border height help
    Defines the width of the spacer between the circle segments.

    Preset system value

    This value is used if no style is defined for this element.

    5

    Color of the space between the circle segments
    Contentdock color help
    Defines the color of the spacer between the circle segments. Possible values are hexadecimal and of RGBA color values.

    The hexadecimal color system uses three sequently hexadecimal numbers, each representing one color of the RGB color space. Example: #ffffff for the color white.

    The RGBA color system has been extended by the RGB system with an alpha value for transparencies. Example: rgba (255,255,255,0.5) for the color white with an alpha value of 0.5.

    Preset system value

    This value is used if no style is defined for this element.

    rgba(255,255,255,0)

  • Title on pie chart segment
    Show title on pie chart segment

    Preset system value

    This value is used if no style is defined for this element.

    0

    Distance between title and the pie segment
    Font
    Font size
    Color

Info layer chart value point (sub element)

  • Background
    Color
    Contentdock color help
    Defines the color of the layer background. Possible values are hexadecimal and of RGBA color values.

    The hexadecimal color system uses three sequently hexadecimal numbers, each representing one color of the RGB color space. Example: #ffffff for the color white.

    The RGBA color system has been extended by the RGB system with an alpha value for transparencies. Example: rgba (255,255,255,0.5) for the color white with an alpha value of 0.5.

    Preset system value

    This value is used if no style is defined for this element.

    rgba(0,0,0,0.4)

    Image
    Contentdock background image help
    Defines the background image for the layer. The image is scaled in the layer.
  • Border
    Height
    Contentdock chart info layer border height help
    Defines the thickness of the border in pixels surrounding the layer. The value is set individually in an input field.

    Please note that only integers are entered. A "px" need not be captured.

    Preset system value

    This value is used if no style is defined for this element.

    4

    Radius
    Contentdock chart info layer border radius help
    Defines the radius of the border in pixels used in the layer corners. The value is set individually in an input field.

    Please note that only integers are entered. A "px" need not be captured.

    Preset system value

    This value is used if no style is defined for this element.

    5

    Color
    Contentdock color help
    Defines the color of the layer border. Possible values are hexadecimal and of RGBA color values.

    The hexadecimal color system uses three sequently hexadecimal numbers, each representing one color of the RGB color space. Example: #ffffff for the color white.

    The RGBA color system has been extended by the RGB system with an alpha value for transparencies. Example: rgba (255,255,255,0.5) for the color white with an alpha value of 0.5.

    Preset system value

    This value is used if no style is defined for this element.

    rgba(0,0,0,0.8)

    Position
    Contentdock chart info layer border position help
    Specify the position of the border. The border always encloses the layer, but you can choose in which direction the border will be drawn.

    Possible values are:

    Inside: The border is drawn inside.

    Outside: The border is drawn outside.

    Preset system value

    This value is used if no style is defined for this element.

    outer

  • Inner Space
    At the top
    Contentdock chart info layer padding top help
    Defines the distance between the top of the "Layer" and the text.

    Preset system value

    This value is used if no style is defined for this element.

    10

    At the bottom
    Contentdock chart info layer padding bottom help
    Defines the distance between the bottom of the "Layer" and the text.

    Preset system value

    This value is used if no style is defined for this element.

    10

    To the left
    Contentdock chart info layer padding left help
    Defines the distance between the left of the "Layer" and the text.

    Preset system value

    This value is used if no style is defined for this element.

    10

    To the right
    Contentdock chart info layer padding right help
    Defines the distance between the right of the "Layer" and the text.

    Preset system value

    This value is used if no style is defined for this element.

    10

  • Title Font
    Name of the font
    Contentdock font family help
    Defines the font for the title text in the layer.

    In contentDock® there are various fonts from fonts.google.com pre installed. You can also load your own fonts in contentDock® as TTF (TrueType Font) or OTF (OpenType Font).

    Preset system value

    This value is used if no style is defined for this element.

    Open Sans Light

    Font size
    Contentdock font size help
    Defines the size of the title text in the layer. The value is selected from the dropdown or can be set individually.

    Preset system value

    This value is used if no style is defined for this element.

    14

    Use chart value color for titles
    Contentdock chart info layer use chart color title help
    If this style is activated, the defined color from the chart item will be used for the title text.

    Preset system value

    This value is used if no style is defined for this element.

    0

    Color
    Contentdock color help
    Is used only when the style "Use chart value color for titles" is not activated.

    Defines the color of the title text in the layer. Possible values are hexadecimal and of RGBA color values.

    The hexadecimal color system uses three sequently hexadecimal numbers, each representing one color of the RGB color space. Example: #ffffff for the color white.

    The RGBA color system has been extended by the RGB system with an alpha value for transparencies. Example: rgba (255,255,255,0.5) for the color white with an alpha value of 0.5.

    Preset system value

    This value is used if no style is defined for this element.

    #ffffff

  • Alignment
    Alignment
    Contentdock text align help
    Defines the general alignment of the text within the layer.

    Possible values are:

    left: The text is left aligned.

    right:The text is right aligned.

    center:The text is centered in the layer.

    Preset system value

    This value is used if no style is defined for this element.

    center

  • Chart value font
    Font name
    Contentdock font family help
    Defines the font of the value text in the layer.

    In contentDock® there are various fonts from fonts.google.com pre installed. You can also load your own fonts in contentDock® as TTF (TrueType Font) or OTF (OpenType Font).

    Preset system value

    This value is used if no style is defined for this element.

    Open Sans Light

    Font size
    Contentdock font size help
    Defines the size of the value text in the layer. The value is selected from the dropdown or can be set individually.

    Preset system value

    This value is used if no style is defined for this element.

    70

    Use chart value color for titles
    Contentdock chart info layer use chart color value help
    If this style is activated, the defined color from the chart item will be used for the value text.

    Preset system value

    This value is used if no style is defined for this element.

    0

    Color
    Contentdock color help
    Is used only when the style "Use chart value color for titles" is not activated.

    Defines the color of the value text in the layer. Possible values are hexadecimal and of RGBA color values.

    The hexadecimal color system uses three sequently hexadecimal numbers, each representing one color of the RGB color space. Example: #ffffff for the color white.

    The RGBA color system has been extended by the RGB system with an alpha value for transparencies. Example: rgba (255,255,255,0.5) for the color white with an alpha value of 0.5.
  • Layer behavior
    Distance between title and value

    Preset system value

    This value is used if no style is defined for this element.

    10