From 93496d6c06628682df686d415d0b52127eb7c872 Mon Sep 17 00:00:00 2001 From: Mohammad Ashmir abbasi Date: Sun, 13 Apr 2025 08:42:42 +0530 Subject: [PATCH] Fix tooltip displaying incorrect months on Y-axis --- apps/heat-map/public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/heat-map/public/script.js b/apps/heat-map/public/script.js index 8afe2f8b6..7582a3756 100644 --- a/apps/heat-map/public/script.js +++ b/apps/heat-map/public/script.js @@ -386,7 +386,7 @@ function callback(data) { return legendThreshold(data.baseTemperature + d.variance); }) .on('mouseover', function (event, d) { - var date = new Date(d.year, d.month); + var date = new Date(d.year, d.month + 1); var str = "" + d3.utcFormat('%Y - %B')(date) +