Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE 7question 3 Line Chart 2

Public visualization

Viewing a saved revision (read-only)

d4ab08513013421f8bd6543ef962f9a4

Fork of ICE 7question 3 Line Chart 2

0 stars0🌍 Public
SShahin Alam
Last edited Jun 9, 2022
Created on Jun 9, 2022

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 description