Using node-canvas
✓ Published0🌍 Public
LLuisSevillano
Last edited Sep 19, 2017
Created on Sep 18, 2017
A static choropleth map renders the prevalence of mental and substance use disorders across U.S. counties for 2014. Using `d3.geoPath` and `node-canvas`, the visualization draws county boundaries and fills them with a ten-step color scale based on `mental_substance.json` data. The code constructs a canvas context, applies a threshold scale from `d3-scale`, and renders state and national outlines from the `us-atlas` TopoJSON file. Data originates from FiveThirtyEight’s “35 Years Of American Death” project.
AI-generated descriptionThis example shows how to create static graphs with d3.geoPath and node-canvas.
The map shows the distribution of Mental and substance use disorders in 2014. Data comes from 35 Years Of American Death by FiveThirtyEight.
GPL-3.0 Licensed