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
Yyaswanthsen
Last edited Mar 11, 2023
Created on Mar 11, 2023

This example visualizes car sales data from 2013–2021, plotting total sales against years. The chart uses a red line to show the trend over time, with axes labeled "years" and "totalsales." It loads data from a CSV file, parses dates with `d3.timeParse`, and renders as an SVG using D3 v5 functions like `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, and `line`. Gridlines are styled with tick sizes, and axis labels are added via appended text elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed