China tile grid map
This example shows a tile grid map of China, where each province is rendered as a rectangular cell colored by its electricity consumption in 2015. The view toggles between a traditional geographic map and the grid layout. It uses `d3.geoMercator` for projection, the `geo2rect` library to convert polygons to rectangles, and `d3.scaleQuantile` to map electricity values to colors. Province positions are manually defined in a configuration object, and the animation is triggered by clicking the toggle button.
AI-generated descriptionInspired by Maarten Lambrecht's Europe example, using geo2rect by Sebastian Meier. Geojson data for China map is from china-geojson.
forked from <a href='http://bl.ocks.org/officeofjane/'>officeofjane</a>'s block: <a href='http://bl.ocks.org/officeofjane/d33d6ef783993b60b15a3fe0f8da1481'>China tile grid map</a>