The Line Chart
✓ Published1🌍 Public
This visualization shows Canadian car sales over time as a green line chart, with the x-axis representing years and the y-axis representing sales figures. The code uses D3 v5’s `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, and `line` generators to construct the SVG chart. Data is loaded from a CSV file via `d3.csv`, with the year parsed using `d3.timeParse` and sales converted to numbers. The chart includes labeled axes, grid-like tick marks, and a rotated y-axis label, all styled via CSS.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed