BAR CHART

Bar Chart groups series into columns and displays them as horizontal or vertical bars.

Horizontal Alert

bar-alert-horizontal

Chart Lab: View

Horizontal

bar-horizontal

Chart Lab: View

Vertical

bar-vertical

Chart Lab: View

Column Alert

bar-column-alert

Chart Lab: View

Alert

bar-alert

Chart Lab: View

Sorted Bars with Average

bars_sorted

Chart Lab: View

[widget] Settings

Inherited settings from Generic Widget: type, title, tooltip, display-panels, left-units, top-units, width-units, height-units, timespan, path, url, alert-style, alert-expression, style, class, format, last, min-range, max-range, min-range-force, max-range-force, legend-position, axis-title, axis-title-right, [threshold]

NameExampleDescriptionChart Lab
horizontalhorizontal = trueDisplay bars horizontally
(default: false).
View
stackstack = falseDisable series grouping
(default: true).
View
groupgroup = region
group = entity, metric
Grouping keys to apply same color to series in the same group (default: metric).View
entity-labelentity-label = srv007Overrides grouped series legend when group=entity.View
metric-labelmetric-label = CPU Busy, %Overrides grouped series legend when group=metric.View
colorscolors = green, steelblue, orangeSeries colors.View
display-valuesdisplay-values = falseShow or hide bar total values (default: true).View
rotate-ticksrotate-ticks = 45
rotate-ticks = 90
rotate-ticks = true
Rotate x-axis labels.
Set in degrees.
Can also set to true to rotate ticks by 90 degrees.
Default value: 0.
View
sortsort = DESC
sort = value ASC
sort = name DESC
sort = collectd.df.space.free DESC
Sort bars by name or value in ascending (ASC) or descending (DESC) order.
In stacking mode bars are sorted using total value.
Supports sorting of columns composed from multiple series by specifying metric name.
If column has multiple series, value keyword in sort settings stands for sum of series values in this column.
View
View
View
View
View
alert-expression
alert-style
alert-expression = value > 10
alert-style = fill: red; stroke: red
Apply alert style to each series separately.View
column-alert-expression
column-alert-style
column-alert-expression = value > 10
column-alert-style = fill: red; stroke: red
Apply alert style to total value of series in each bar.View
hide-empty-columnshide-empty-columns=trueShow or hide columns with no data to display.
Default value: false.
View
View

[column] Settings
NameExampleDescriptionChart Lab
labellabel = Column-1Column legend displayed below bar.View
alert-expression
alert-style
alert-expression = value > 7
alert-style = fill: red; stroke: red
Apply alert style based on total value of series inside the bar.View
column-label-formatcolumn-label-format = tags.mount_pointColumn label pattern containing text and placeholders.
Any combination of the following can be used:
entity, metric, tagName, tagValue,
tags.{tag-name}
statistics, period
Default value: entity: metric: tagName=tagValue: statistics - period
View

Additional details

[series] Settings

Inherited settings from Generic Widget [series]: entity, metric, type, interval, style, color, label, tooltip, format, display, hidden, refresh-interval, retry-refresh-interval, error-refresh-interval

Configuration Example

Chart Lab: View

[widget]
 
  type = bar
  title = CPU Usage by System, User, Wait I/O
  timespan = 5 minute
  format = Math.round(value) + '%'
 
  [column]
 
    [series]
      entity = nurswgvml007
      metric = cpu_user
    [series]
      entity = nurswgvml007
      metric = cpu_system
    [series]
      entity = nurswgvml007
      metric = cpu_iowait
 
  [column]
 
    [series]
      entity = nurswgvml006
      metric = cpu_user
    [series]
      entity = nurswgvml006
      metric = cpu_system
    [series]
      entity = nurswgvml006
      metric = cpu_iowait