[Chartjs]-Chart.js not stretching width as per data


Usually the charts are displayed like that only, Jus imagine if my max data is 1 year huge. And if the user wishes to see ony for last one day, So big my canvas would be say 600×600 which accommodates around one year data, just imagine how small would be the size for displaying one day data if we keep on reducing the width as per your reqs or specs.

You may see the examples here, which doesn’t change the chart width or size



Give a thought and enjoy charting 😉

Leave a comment