mtatsuma / MMM-WeatherChart

Magic Mirror Module for displaying weather chart
MIT License
27 stars 9 forks source link

Fix the chart width and height #22

Closed mtatsuma closed 3 years ago

mtatsuma commented 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