Chartjs-Second dataset with single point makes y axis too big on Chart.js

0πŸ‘

βœ…

It was simple in the end. I was trying to give it a single datapoint, rather than a list of datapoints containing a single item.

I’m still not entirely sure why that would have affected the y-axis the way it did, but at least this is here now in case anyone else makes the same mistake.

Leave a comment