Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Area Chart

Public visualization

Area Chart

0 stars0🌍 Public
Ddldowning
Last edited Mar 26, 2023
Created on Mar 26, 2023
Forked from Line Chart

This area chart compares poverty percentage and blacksmith percentage across fantasy worlds, using a steelblue filled area to suggest a possible trend between the two variables. The visualization sorts the data by blacksmith percentage before rendering, making the progression along the x-axis easier to follow. Built with React and D3 v5, the code uses `d3.csv`, `scaleLinear`, `d3.area`, `axisLeft`, and `axisBottom` to load, scale, and draw the SVG output. Data comes from a GitHub gist, and the example questions whether any relationship exists between the two metrics.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed