Skip to main content
100%

linechart

✓ Published0🌍 Public
Aaniteshterala2000
Last edited Jul 12, 2023
Created on Jul 12, 2023
Forked from Hello VizHub

A line chart tracks the cost of sales from 2000 to 2013 using data from a local CSV file. The SVG visualization uses `d3.scaleBand` for the year axis and `d3.scaleLinear` for cost, with `d3.axisBottom` and `d3.axisLeft` rendering the ticks. A `d3.line` path with a lightgreen stroke connects the data points, and red text labels for "Year" and "cost" are positioned via SVG transforms. The chart is built with D3 v7 in an ES6 module.

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