Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line Chart

Public visualization

Line Chart

0 stars0🌍 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).

Comments

Sign in to join the discussion.

MIT Licensed