Skip to content

Commit

Permalink
Merge pull request #19 from mtatsuma/fix_renge
Browse files Browse the repository at this point in the history
Fix a bug for rainMinHeight change
  • Loading branch information
mtatsuma authored Dec 16, 2020
2 parents d2309de + 0891804 commit 5350412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMM-WeatherChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ Module.register("MMM-WeatherChart", {
// Set Y-Axis range not to overlap each other
let y1_max = iconLine[0] + (maxValue - minValue) * 0.1,
y1_min = minValue - (maxValue - minValue) * 0.2,
y2_max = Math.max(maxRain, this.config.maxRain) * 3.2,
y2_max = Math.max(maxRain, this.config.rainMinHeight) * 3.2,
y2_min = 0;
if (this.config.showRain) {
y1_min = y1_min - (maxValue - minValue);
Expand Down

0 comments on commit 5350412

Please sign in to comment.