Assign data from csv to a canvas map
✓ Published0🌍 Public
LLuisSevillano
Last edited Feb 19, 2017
Created on Feb 19, 2017
A choropleth map of the Portuguese island of La Palma colors municipalities by unemployment rate, with values assigned from a CSV file via their common ID codes. The visualization overlays land-use polygons and road networks from a TopoJSON file onto the unemployment data. Using D3.js, it renders directly to a Canvas with `d3.geoPath` and `.context(context)`, applying a threshold color scale to the unemployment percentages. The code combines `d3.queue` for deferred loading of the JSON and CSV, and `topojson.feature` to extract map geometries before drawing each layer.
AI-generated descriptionA series of blocks for the QGIS-and-d3 workshop at Medialab-Prado Madrid (02/19/2017).