Fork of ICE 7question 3 Line Chart 2
✓ Published0🌍 Public
This line chart visualizes automobile sales in India from 1999 to 2012, plotting yearly electronic sales data loaded from a CSV file hosted on GitHub. The SVG chart is built with D3 v5, using `scaleTime` for the year axis and `scaleLinear` for sales values, with `axisBottom` and `axisLeft` generating gridlines and labels. A `line` generator creates the blue sales path, while margins and appended text elements position the title and rotated axis labels. The code imports specific D3 functions like `csv`, `extent`, and `max` to process the data, then renders the final visualization inside a 960×500 SVG container.
AI-generated descriptionMIT Licensed