From ad63c825764299b542f4f626519ebe35cd15c882 Mon Sep 17 00:00:00 2001 From: Juned Chhipa Date: Mon, 22 Jul 2024 20:31:10 +0530 Subject: [PATCH] fixes #4579; heatmap legend color issue --- src/modules/legend/Legend.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/legend/Legend.js b/src/modules/legend/Legend.js index 2e41c22f5..48783081c 100644 --- a/src/modules/legend/Legend.js +++ b/src/modules/legend/Legend.js @@ -120,10 +120,9 @@ class Legend { const SVGMarker = SVG(elMarker).size('100%', '100%') const marker = new Graphics(this.ctx).drawMarker(0, 0, { ...markerConfig, - pointFillColor: Array.isArray(w.config.legend.markers.fillColors) + pointFillColor: Array.isArray(fillcolor) ? fillcolor[i] : markerConfig.pointFillColor, - shape, })