Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Line Chart-KiranV

Public visualization

Viewing a saved revision (read-only)

1886c1efcb3343c2a1aaa31f69c2bcf7

Fork of Fork of Line Chart-KiranV

0 stars0🌍 Public
Kkirangithub23
Last edited Jul 3, 2022
Created on Jul 3, 2022

This example shows US auto sales by brand from 2003 to 2018 as a single blue line chart, with year on the x-axis and sales volume on the y-axis. The chart includes axis labels, gridlines, and a green title. The code loads CSV data from a GitHub gist and uses d3.csv, d3.scaleTime, d3.scaleLinear, d3.axisBottom, d3.axisLeft, and d3.line to render the SVG visualization. The dataset is mapped to date objects and numeric sales values before being passed to the render function.

AI-generated description