Fork of Line Chart
✓ Published0🌍 Public
A line chart displays Tesla sales from 2010 to 2022, with years on the x-axis and sales figures on the y-axis. The SVG graphic uses D3 v7’s `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, and `line` generators to plot the data. A CSV file is loaded via `csv` and parsed, converting sales to numbers and years to Date objects. The chart includes labeled axes, grid lines, and a title, with margins positioning the plot area inside an 800×600 viewport.
AI-generated descriptionMIT Licensed