Skip to main content
100%

Activity8_Task4

✓ Published0🌍 Public
AArun Pratap
Last edited Jul 17, 2023
Created on Jul 17, 2023
Forked from Hello VizHub

This visualization displays the cost of sales from 2000 to 2013 using an area chart with a smoothed basis curve line. The SVG chart uses D3 v5 scales (scaleTime, scaleLinear) and axes (axisLeft, axisBottom) to map the temporal and cost dimensions. Data is loaded from a CSV hosted on GitHub, with year values parsed as dates. The code demonstrates local ES6 module imports and D3's line and area generators with curveBasis to create the filled region and overlaid stroke.

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