Skip to main content
Public

Share visualization

Loading preview…

Fork of ICE 7question 3 Line Chart 2

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of ICE 7question 3 Line Chart 2

0
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

Comments

Sign in to join the discussion.

MIT Licensed