Skip to main content
100%

linechart

✓ Published0🌍 Public
Aanith462@gmail.com
Last edited Jul 19, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

This line chart displays the cost of sales from 2000 to 2013, with yearly values plotted as a thick light-green line. The chart uses an SVG rendering with D3 v7, employing `d3.scaleBand` for the categorical year axis and `d3.scaleLinear` for the cost axis. Data is loaded from a local CSV file via `d3.csv`, and the line path is generated with the `d3.line` API, with red axis labels and tick styling defined in embedded CSS.

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