Skip to main content
100%

Activity8_Task3_linechart

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

This line chart shows the cost of sales from 2000 to 2013, with each year mapped along a band scale and cost values along a linear scale. The SVG visualization draws a thick yellow polyline through the data points, which are loaded from a local CSV file. The chart uses d3.scaleBand and d3.scaleLinear for positioning, d3.axisBottom and d3.axisLeft for tick marks, and d3.line to generate the path. Axis labels are added as SVG text elements in blue.

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