Skip to main content
100%

linechart

✓ Published0🌍 Public
Aakshayvenishetty1437
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from Hello VizHub

This line chart displays cost of sales data from 2000 to 2013, with each year’s cost plotted as a point connected by a thick lightgreen line. The visualization uses D3 v7 with an SVG rendering approach, loading data from a local CSV file via `d3.csv`. It employs `d3.scaleBand` for the X-axis (years) and `d3.scaleLinear` for the Y-axis (cost), with axes rendered using `d3.axisBottom` and `d3.axisLeft`. The line is generated using `d3.line` with coordinates offset to align with band centers.

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