Skip to main content
100%

linechart

✓ Published0🌍 Public
NNukaShravanKumar
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from Hello VizHub

This example displays the cost of sales from 2000 to 2013 using a simple line chart. It renders the data as an SVG path with a light green stroke, plotting yearly values on a linear scale against a band scale for years. The visualization loads data from a local CSV file using `d3.csv` and builds axes with `d3.axisBottom` and `d3.axisLeft`. The code explicitly sets chart dimensions, margins, and labels, emphasizing a straightforward demonstration of D3 v7’s line generator and scales.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes