Skip to main content
100%

linechart

✓ Published0🌍 Public
NNagateja99
Last edited Jul 13, 2023
Created on Jul 13, 2023
Forked from Hello VizHub

This line chart displays the cost of sales from 2000 to 2013, sourced from a local CSV file. It uses D3 v7 to load and parse the data, then renders an SVG line plot with a light green stroke. The chart includes labeled X and Y axes, with the X-axis using a band scale for years and the Y-axis using a linear scale for costs. The code leverages D3’s `d3.csv`, `d3.scaleBand`, `d3.scaleLinear`, and `d3.line` APIs to build the visualization.

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