Skip to main content
100%

Line Chart

✓ Published0🌍 Public
CChathurya
Last edited Mar 28, 2023
Created on Mar 28, 2023
Forked from D3.js Line Chart

This line chart displays US healthcare spending per capita from 2000 to 2019, showing a steady upward trend over the two decades. The visualization uses D3.js v7 with an SVG rendering, employing `d3.scaleBand` for the categorical year axis and `d3.scaleLinear` for the spending values. The line is drawn using `d3.line()` and styled with a coral stroke. Data comes from Macrotrends, loaded via `d3.csv`, with axes generated by `d3.axisBottom` and `d3.axisLeft`.

AI-generated description

This line chart shows healthcare spending in US from 2000 to 2019 data. The data comes from (https://www.macrotrends.net/countries/USA/united-states/healthcare-spending).

MIT Licensed

Similar vizzes