Bar Chart Widget Examples
Example 1: Production Throughput by Line
Datasource Setup
- Add datasource.
- Set
Type = Static. - Set
Title = throughput. - Set
Static Valueto:
json
[
{ "label": "Line A", "value": 128 },
{ "label": "Line B", "value": 96 },
{ "label": "Line C", "value": 143 },
{ "label": "Line D", "value": 88 }
]- Set
Refresh = 0. - Save.
Widget Setup
- Add widget.
- Set
Type = Bar Chart. - Set
Title = Throughput. - Set
Rows Path = throughput. - Set
Label Field = label. - Set
Single-Series Value Field = value. - Set
Orientation = Vertical. - Enable
Show Values. - Save.
Expected output: vertical bars with value labels for each production line.
Example 2: Multi-Series Shift Comparison
Datasource Setup
- Add datasource.
- Set
Type = Static. - Set
Title = shiftComparison. - Set
Static Valueto:
json
[
{ "label": "Mixer", "day": 38, "night": 29 },
{ "label": "Filler", "day": 44, "night": 41 },
{ "label": "Labeler", "day": 52, "night": 35 }
]- Set
Refresh = 0. - Save.
Widget Setup
- Add widget.
- Set
Type = Bar Chart. - Set
Title = Day vs Night. - Set
Rows Path = shiftComparison. - Set
Label Field = label. - Set
Multi-Series Fields = day,night. - Set
Orientation = Horizontal. - Set
Animated = true. - Save.
Expected output: grouped horizontal bars with legend entries for day and night.