Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line chart For Car Sales

Public visualization

Line chart For Car Sales

0 stars1🌍 Public
GGARIDIDEEKSHITHREDDY
Last edited Mar 29, 2022
Created on Mar 29, 2022

This line chart displays car sales from 2013 to 2021, with time on the x-axis and sales count on the y-axis. The visualization uses D3 v5 with SVG rendering, loading data from a CSV file and parsing dates with `d3.timeParse`. It implements `scaleTime` and `scaleLinear` for axes, and a `line` generator to draw the red trend line. The code adds labeled axes and removes default tick domains, with gridlines shown via `tickSize` on both axes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed