Skip to main content
100%

China tile grid map

✓ Published0🌍 Public
EEndNight95
Last edited Aug 6, 2018
Created on Aug 6, 2018

This example shows a tile grid map of China where each province is drawn as a rectangle instead of its actual geographic shape. The map is colored by electricity consumption per province from a 2015 CSV dataset, using a quantile color scale. The visualization uses `d3.geoMercator()` for projection, `geo2rect` to convert polygon geometries into rectangular tiles, and SVG paths for rendering. A toggle button animates between the tile grid and the original geographic map layout using `g2r.toggle()` and redraws with `g2r.draw()`.

AI-generated description

Inspired 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>

mit Licensed

Similar vizzes