🌍 Public
Viewing a saved revision (read-only)
3c74b6a7d22846e5bd6c89ace6146b6b
Map using Canvas
This example displays an Indian state-level choropleth map, colored with a rainbow sequential scale based on the `POINTS_` property from NFHS-4 survey data. It renders geographic boundaries onto a Canvas element using D3 v4’s `d3.geoPath` with a Mercator projection, while `d3.scaleSequential` maps data values to colors. Each feature is individually stroked in black and filled via Canvas 2D context operations, with data loaded from a remote GeoJSON file.
AI-generated descriptionMap on canvas using D3