Skip to main content
100%

linechart

✓ Published0🌍 Public
Bbogasamudramvamsikrishnareddy
Last edited Jul 23, 2023
Created on Jul 23, 2023
Forked from Hello VizHub

This line chart visualizes the cost of sales from 2000 to 2013 using annual data points from a CSV file. The chart employs D3 v7's `scaleBand` for the categorical year axis and `scaleLinear` for the cost axis, rendering a thick light-green line via `d3.line()` within an SVG. Axis labels and tick formatting are applied through `d3.axisBottom` and `d3.axisLeft`, with the data loaded asynchronously via `d3.csv`.

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