Skip to main content
100%

linechart

✓ Published0🌍 Public
Hharsha
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

This example shows the cost of sales from 2000 to 2013 as a single light-green line chart. It loads data from a CSV file using `d3.csv`, then renders axes with `d3.axisBottom` and `d3.axisLeft`. The line is drawn with `d3.line`, using a band scale for the year positions and a linear scale for the cost values. The SVG chart includes labeled axes and a title.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes