TREEMAP WIDGET
Treemap displays each series as a rectangle, sized according to the size
setting and colored according to the magnitude of deviation of the series value from the threshold.
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, min-range, max-range.
Name | Example | Description | Chart Lab |
---|---|---|---|
display-total | display-total = false | Displays the sum of rectangle sizes, i.e. size setting for series (true by default) | View |
size-name | size-name = sum | Title for for display-total. Displayed after Total. For example: Total sum | View |
format-size | format-size = kilobytes | Format size setting values. For example: format-size = bytes | View |
font-size | font-size = 42 | Font size settings, set as a whole number (i.e. 12). | View |
color-range | color-range = blue color-range = black color-range = red color-range = green, yellow, red | Determines the color range of the widget. By default: color-range = red Other built-in color-range scales: blue, black. Custom colors can be added into the row. | View |
gradient-count | gradient-count = 2 gradient-count = 3, 1, 1 | Number of gradients in each range. | View |
total-size | total-size = 70 | Total maximum size of all rectangles combined | View |
palette-ticks | palette-ticks = true | Display labels on the legend. Possible values: true, false Default value: false | View |
rotate-palette-ticks | rotate-palette-ticks = true | Rotate legend labels. Possible values: true, false true – vertical false – horizontal Default value: true | View |
range-merge | range-merge = true | If threshold is not defined, different set of ranges is computed for each series based on observed min and max values within the loaded timespan.range-merge computes a single set of ranges for all series in the widget by using min and max for all loaded series.Default value: false | View |
mode | mode = row | Layout mode controls how rectangles are positioned. Available options: – default – row (align rectangles as rows) – column (align rectangles as columns) – auto (switch between row and column modes depending on widget size) | View |
[series] Settings
Inherited settings from Generic Widget [series]: entity, metric, type, interval, statistics, alert-expression, alert-style, style, color, label, tooltip, format, refresh-interval, retry-refresh-interval, error-refresh-interval.
Name | Example | Description | Chart Lab |
---|---|---|---|
size | size = 3 size = value('007') size = value('scala') size = value | The relative size of the series rectangle (1 by default). Can be set to a series value by referring to its alias. Can be set to the current value of the series using value . | View View View View |
thresholds | thresholds = 0, 25, 50, 75, 100 thresholds = bottom(1), delta('total') / value('total'), top(1) | Setting which defines the threshold values. By default the mean value all metrics for the whole time-span is chosen as the threshold. Can be set to the change rate (delta) of series contained in the widget by referring to their aliases. | View View |
color | color = avg('30 minute') < 90 ? 'green' : 'red' | Color of the rectangle. Can be given in the form of JavaScript code, same as the alert-expression settings or value for series. | View |
[other] Settings
[other] creates an additional rectangle which is not associated with any series and can be used to display remaining value or spare capacity.
Chart Lab: View
Name | Example | Description |
---|---|---|
size | size = 1 | Relative size (1 by default) |
label | label = Other | The display name (Other by default) |
color | color = grey | Rectangle color |
[properties] Settings
For [other] and [series] tags in this widget, it is possible to define the [properties] tag, which specifies any values divided by an equal sign (if the value contains = or \, then they should be written with a backslash, i.e. \=
\\).
This setting will display a table in the tooltip that appears when you mouse-over a series rectangle. Also in these tags, you can use the context setting value, which is displayed in the tooltip before the [properties] table.
Chart Lab: View
Example Configuration
Chart Lab: View
[widget] type = treemap time span = 10 minute title = Cpu Busy [series] entity = nurswgvml010 metric = cpu_busy size = 1 [series] entity = nurswgvml006 metric = cpu_busy size = 2 [series] entity = nurswgvml007 metric = cpu_busy size = 3 |