Line Chart
✓ Published0🌍 Public
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 descriptionThis 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