Bar chart
Bars to compare values by category. Each msg.topic is a series: send one message per line, machine or year, and the bars are grouped side by side or stacked. Colors come from the theme’s series palette, so they match the line chart and both themes. Hover a bar for its value; click it (or select it with the keyboard and press Enter) to send it to your flow.
Grouped
Section titled “Grouped”Stacked, horizontal
Section titled “Stacked, horizontal”Properties
Section titled “Properties”| Property | Type | Default | Description |
|---|---|---|---|
label |
string | Bar chart |
Title at the top |
icon |
string | Lucide icon before the title | |
unit |
string | Shown in tooltips | |
decimals |
number | 0 |
Decimals of values and labels |
orientation |
vertical · horizontal |
vertical |
Bars going up, or across (long category names) |
stacked |
boolean | false |
Stack the series instead of grouping them; totals on top |
showValues |
boolean | true |
Values on the bars (when they fit) |
min, max |
number | auto | Widen the value axis; it always includes zero |
msg.topic = 'Line 1'; // the series (one series when empty)msg.payload = { Mon: 420, Tue: 465, Wed: 398 }; // replaces that seriesmsg.payload = [{ label: 'Mon', value: 420 }, …]; // same, as a listmsg.payload = [{ label: 'Mon', value: 420, series: 'Line 1' }, { label: 'Mon', value: 380, series: 'Line 2' }]; // several series at oncemsg.payload = []; // clear (also null)A message replaces only the series it names; categories keep the order they first arrived in.
Output
Section titled “Output”{ payload: { label: 'Tue', series: 'Line 1', value: 465 }, topic: 'units', _client: { id: 'c7f…' } }