Skip to main content
100%

Nikhil_line

✓ Published0🌍 Public
Kkottenikhil
Last edited Mar 30, 2023
Created on Mar 30, 2023
Forked from ICE-7 Line Chart

This example displays a red line chart tracking the cost of sales from 2000 to 2013. The visualization uses D3 version 5’s `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, and `line` generator to render an SVG graphic. Data is loaded from a CSV file via the `csv` method, with year values parsed as JavaScript `Date` objects and cost values as numbers. The chart includes labeled axes, gridlines, and a title, with margins positioning the plot area within a 960×500 viewport.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes