Closed mtatsuma closed 3 years ago
The width and height setting do not work well because Chart.js fixes the chart width and height ratio to 2 by default [1].
To solve that, I set maintainAspectRatio as false.
Related issue: https://github.com/mtatsuma/MMM-WeatherChart/issues/21
[1] https://www.chartjs.org/docs/latest/general/responsive.html#configuration-options
The width and height setting do not work well because Chart.js fixes the chart width and height ratio to 2 by default [1].
To solve that, I set maintainAspectRatio as false.
Related issue: https://github.com/mtatsuma/MMM-WeatherChart/issues/21
[1] https://www.chartjs.org/docs/latest/general/responsive.html#configuration-options