[Chartjs]-Updating chart.js chart with dataset of different size

2πŸ‘

βœ…

It seems that there is a hacking method:

pilleChart.config.data.labels = newLabels

See: https://jsfiddle.net/0agcu3ps/3/

ps: there is a bug in your demo, the first item of var labels10 = ["Tue Nov 13 2018 02:00:00 GMT+0100", is wrong, it should be Nov 12 πŸ˜€

Leave a comment