Skip to main content
100%

linechart

✓ Published0🌍 Public
VVenkat-Sumith-Thota
Last edited Jul 9, 2023
Created on Jul 9, 2023
Forked from Hello VizHub

This line chart visualizes the cost of sales from 2000 to 2013, with each year plotted on the x-axis and cost on the y-axis. The data is loaded from a CSV file using `d3.csv` and rendered as SVG with a lightgreen stroke. The chart uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.line` to generate the path. Axis labels are added via `d3.axisBottom` and `d3.axisLeft`, with custom text elements for “Year” and “cost.”

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