Skip to main content
100%

ICE - 7 Area Chart for Car Sales

✓ Published2🌍 Public
VVenkata Sai Preetham
Last edited Jul 3, 2022
Created on Jul 3, 2022
Forked from React & D3 Starter

This area chart visualizes annual car sales in Canada, with the x-axis mapping years and the y-axis representing sales figures. The chart combines a smooth black line generated with d3.line and curveBasis, with a filled area beneath it created using d3.area. Data is loaded from a remote CSV file and parsed with d3.csv and d3.timeParse. Axes are rendered using d3.axisLeft and d3.axisBottom, with grid lines and formatted tick labels applied via d3.format.

AI-generated description

This viz is a starter that demonstrates patterns used in real world projects in which complexity is anticipated to scale.

  • Decoupled React & D3 integration
  • Opening moves for scalable complexity
  • Industry standard ES modules and JSX
  • Copy-paste into existing projects

Any questions? Ask on Twitter!

Also viewable in:

MIT Licensed

Similar vizzes