Chartjs-Updating chart.js with a dataset of different size not working

0👍

The problem was that the values in the new dataset where of much bigger magnitude, so the chart wasn’t able to calculate the size with current stepSize. When I changed that, then it worked fine:

BarChart.chart.options.scales.yAxes[0].ticks.stepSize = 500000;

Leave a comment