Chart.js
Chart.js copied to clipboard
Bar Graph data format.
Lack of data format for bar graph. I trying to populate the data format see below data format;
[{
"store_name": "Store One",
"payments": {
"cash": 50,
"credit_card": 30,
"paypal": 20
}
},{
"store_name": "Store Two",
"payments": {
"paid_online": 50,
"visa": 37
}
},{
"store_name": "Store Three",
"payments": {
"cash": 50,
"walk_in": 37,
"table": 23,
"shop": 21
}
}]
The only supported format for bar chart data is by setting data.labels to be the x axis labels and then creating datasets for 'cash', 'credit card'. and 'paypal'
There is already an open issue to allow other data formats for bar charts. Closing as a duplicate