PIE CHART
The Pie Chart illustrates numerical proportions between series values and their total value.
Chart Lab: View
Chart Lab: View
Chart Lab: View
Chart Lab: View
Chart Lab: View
Chart Lab: View
Chart Lab: View
[widget] Settings
Inherited settings from Generic Widget: type, title, tooltip, left-units, top-units, width-units, height-units, timespan, path, url, alert-style, alert-expression, style, format, last, legend-position.
Pie Chart has special interactions when a pie segment is clicked:
- Single click – opens dialog window with a time chart for the series
- Double click – expands/collapses the selected pie segment
The initial segment position can be controlled with the expand
setting.
Name | Example | Description | Chart Lab |
---|---|---|---|
mode | mode = ring | Display ring instead of pie. Possible values: pie, ring. Default value: pie | View |
total-value | total-value = 1024 total-value = value('007-root') + value('006-root') | Defines the total value explicitly, otherwise it is computed as the sum of series values.
| View View |
expand | expand = true | Can be set under [widget] and/or for each [series]. Expands all segments or an individual segment. Possible values: true, false Double click modifies expand setting interactively. | View |
selector-mode | selector-mode = highlight | Selector mode controls how pie segmets react to click interaction. Possible Settings: highlight, expand. Highlight – double click highlights the selected pie segment, other segments are greyed out. Expand – double click expands the selected pie segment. | View |
on-series-double-click | on-series-double-click = '' | Disable double click functionality in the widget. | View |
[series] Settings
Inherited settings from Generic Widget [series]: entity, metric, style, color, label, tooltip, format, display, hidden, refresh-interval, retry-refresh-interval, error-refresh-interval.
Name | Example | Description | Chart Lab |
---|---|---|---|
series-labels | series-labels = inside series-labels = outside series-labels = connected series-labels = value >= 2000000 ? 'connected' : 'auto' | Display values for each pie slice (series) as a tick. Possible settings: inside, outside, connected, auto, none Default value: none Can be set to an expression that will change the label type depending on series value. | View View |
Icon and Caption Settings
Icons and captions can be applied to series when Pie chart mode is set to ring.
Name | Example | Description | Chart Lab |
---|---|---|---|
icon | icon = public/img/svg/linear/users.svg icon = alerts_color_07 icon = alerts-color-07 | Displays an .svg icon. Path to your custom icons must be set. We suggest using the /opt/atsd/atsd/conf/portal/img/ directory in your ATSD installation to hold your icons.ATSD includes a built-in collection of icons. Built in icons are referenced by name, without the full path. View built-in Icon Reference Sheet. Underscores in built-in icon names can substituted with dashes: icon = alerts_color_07 icon = alerts-color-07 | View View |
icon-alert-expression | icon-alert-expression = value('s1') > 10 | Alert rules that are applied to the icon. | View |
icon-alert-style | icon-alert-style = return alert > 12000 ? 'fill: red' : 'fill:green'; | Styles that are applied to the icon when the alert expression is satisfied. | View |
caption | caption = Administrative Users | Сaption displayed below the icon. | View |
caption-style | caption-style = font-size: 64px; font-weight: bold; fill: silver; | Style applied to the caption. | View |
min-font-size | min-font-size | Minimum caption font size. Font size will not scale below set size. | View |
max-font-size | max-font-size | Maximum caption font size. Font size will not scale above set size. | View |
[other] Settings
Name | Example | Description | Chart Lab |
---|---|---|---|
display | display = false | Display the difference between total-value and the sum of visible series values. If total-value is defined, but [other] tag is missing, the Other section will not be displayed. Default: true | View |
label | label = Unmonitored memory | Label of the Other section. Default: Other | View |
tooltip | tooltip = Unmonitored memory (HMC disabled) | Tooltip for the Other section displayed on mouse-over. Default: Other | View |
color | color = silver | Color of the Other section. Default: lightgray | View |
Configuration Example
Chart Lab: View
[widget] type = pie timespan = 15 minute format = kilobytes [series] entity = nurswgvml003 metric = memfree [series] entity = nurswgvml006 metric = memfree [series] entity = nurswgvml007 metric = memfree |