Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit 6da8292

Browse files
committed
(fixup) add back index to choropleth calcdata
- so that hover routine can grab it for `pointNumber` event data field - makes add geo tests pass 🎉
1 parent f4efddf commit 6da8292

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/traces/choropleth/plot.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function calcGeoJSON(calcTrace, topojson) {
6565

6666
calcPt.geojson = feature;
6767
calcPt.ct = feature.properties.ct;
68+
calcPt.index = i;
6869

6970
var geometry = feature.geometry;
7071
var coords = geometry.coordinates;

0 commit comments

Comments
 (0)