India Map: ICE-8
✓ Published1🌍 Public
This visualization displays a choropleth map of India's states, with each state filled by a distinct categorical color and labeled with its name at its centroid. The map is rendered as an SVG using the D3.js library, employing a geoMercator projection with specific translation and scaling to position the country. State boundaries are extracted from a TopoJSON file fetched via d3.json, and the d3.geoPath function generates the SVG paths. State labels are placed using the pathGenerator.centroid method, while d3.scaleOrdinal and d3.schemeCategory10 assign the color palette.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed