mtatsuma / MMM-WeatherChart

Magic Mirror Module for displaying weather chart
MIT License
26 stars 8 forks source link

Modify the margin between chart lines #39

Closed mtatsuma closed 2 years ago

mtatsuma commented 2 years ago

Icon images and data labels may overlap with each other when the chart height is small (e.g. < 300px).

This commit enables to set the mergin based on the chart height, font size and data labels offset values.

To calculate the margins, the "height" config must be in px. Then I updated README to note that it must be in px.

Related issue: https://github.com/mtatsuma/MMM-WeatherChart/issues/38