Skip to main content
100%

Map

✓ Published0🌍 Public
DDINESH SAI BOPPANA
Last edited Jul 9, 2022
Created on Jul 9, 2022
Forked from D3 Starter

This example displays a choropleth map of Indian states, with each state filled by a distinct categorical color and labeled with its name. It uses D3 v4's `d3.geoPath` with the `d3.geoMercator` projection to render SVG paths from TopoJSON data, and `d3.scaleOrdinal` with `schemeCategory10` for coloring. State labels are positioned using the path generator's centroid method. The map also generates tooltips via appended `title` elements, loading geographic data from a remote TopoJSON source.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript See also React Starter.

MIT Licensed

Similar vizzes