Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of line chart section 3

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 Fork of line chart section 3

0
RRahulChaitu999
Last edited Jul 3, 2022
Created on Jul 3, 2022

This visualization displays car sales data from 2013 to 2021, using time on the x-axis and total sales on the y-axis. Drawn as a red SVG line via `d3.line`, the chart employs `d3.scaleTime` for the temporal axis and `d3.scaleLinear` for sales, with axes generated by `d3.axisBottom` and `d3.axisLeft`. Data is loaded as CSV from a GitHub gist and parsed with `d3.timeParse`. The example builds on D3 v5, using modular imports and a simple margin-based layout with custom axis labels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed