Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Area_Chart

Public visualization

Area_Chart

0 stars0🌍 Public
Kkartheekgrpt@gmail.com
Last edited Nov 4, 2024
Created on Nov 4, 2024

This area chart visualizes expected EV production and sales in the US from 2010 to 2030. The graphic combines a smooth, black trend line with an orangered filled area beneath it, clearly showing the projected growth over time. The visualization is rendered as an SVG using D3 v5, with a time-scaled x-axis and a linear y-axis. The code leverages D3’s `area`, `line`, `curveBasis`, `scaleTime`, `scaleLinear`, `axisLeft`, and `axisBottom` APIs to generate the chart. Data is parsed from a CSV file hosted on GitHub, with years converted using `timeParse`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed