Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of line chart section 3

Public visualization

Fork of Fork of line chart section 3

0 stars0🌍 Public
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