Skip to main content
100%

linechart

✓ Published1🌍 Public
UUmarani Vemula
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

A line chart shows the cost of sales from 2000 to 2013, with the year on the x-axis and cost on the y-axis. The data is loaded from a CSV file using `d3.csv` and rendered as an SVG path with a light green stroke. The chart uses `d3.scaleBand` for the categorical year axis and `d3.scaleLinear` for the continuous cost axis, with axes generated by `d3.axisBottom` and `d3.axisLeft`. Red axis labels and a centered title are added via SVG text elements.

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