🌍 Public
Viewing a saved revision (read-only)
9ba2436280804293a2b732807f7ac998
Wealth Distribution Overtime
Wealth Distribution Overtime uses d3.line, scaleLinear, axisBottom, axisLeft, and scaleOrdinal to render three multi-series line charts tracking the wealth of Elon Musk, Mark Zuckerberg, and Jeff Bezos from 2020 to 2024. The code defines the data inline, with values in hundreds of millions, and draws each person’s trajectory as an SVG path with stroke and circle marks. A color-coded legend and labeled axes clarify the comparison, while the x-axis shows years and the y-axis displays wealth magnitude.
AI-generated descriptionAn approximation of a line chart using D3.js!
Watch the video and study the code to learn about:
- SVG Path Elements
- fill, stroke, stroke-width
- stroke-linecap, stroke-linejoin
- Vanilla HTML SVG Paths
- D3.line
- AI Assist
See also: