@bmusson
I’m experiencing an issue on the Chartjs (3.0.1 (b2025062601) , Ignition 8.1)
I’m having trouble configuring a horizontal bar chart.
Watching online videos it seems pretty staightforward, change the indexAxis from x to y , but when I do so the bars disappear.
Am I doing something wrong?
Current Chart config:
"type": "embr.chart.chart-js",
"version": 0,
"props": {
"type": "bar",
"data": {
"labels": [
"Planned Production Downtime",
"Planned Maintenance",
"Stock Take",
"Cleanouts & Line Flush",
"Breakdowns Mechanical",
"Bin Space Outloading",
"Bind Space Pre Pelleting",
"No Raw Materials",
"Chokes",
"Labour",
"PLC/Control System",
"Utility Failure (Eletrical and Water)"
],
"datasets": [
{
"data": [
1800,
0,
0,
1180,
471,
0,
0,
135,
200,
0,
0,
300
],
"label": "Dataset 1"
}
]
},
"options": {
"scales": {
"x": {
"type": "category"
},
"y": {
"type": "linear"
}
},
"indexAxis": "y"
}
},
"meta": {
"name": "Chartjs"
},
"position": {
"grow": 1,
"basis": "300px"
},
"custom": {}
}