Skip to main content
100%

Fork of Line Chart by Tejaswi_Tummala

✓ Published1🌍 Public
Tttummala17
Last edited Jul 2, 2022
Created on Jul 2, 2022

This example visualizes Tesla sales in the USA from January 2021 to February 2022 as a line chart rendered with SVG. It uses React to manage state and fetch CSV data via `d3.csv`, then displays the monthly sales trend with a smooth curve generated by `d3.line()` and `curveBasis`. Axes are built using `scaleTime` for months and `scaleLinear` for sales values, with custom tick labels formatted via `timeFormat`. The chart includes labeled axes and a title, and data is loaded asynchronously from a GitHub gist.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes