Skip to main content
100%

Activity 8 Question 4

✓ Published0🌍 Public
MMichael Biancardi
Last edited Jul 17, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example visualizes the cost of sales over time from 2000 to 2013, combining a smooth line chart with a filled area chart beneath it. The SVG rendering uses D3 v5 APIs including `scaleTime`, `scaleLinear`, `line`, `area`, and `curveBasis` to draw the paths, while `axisBottom` and `axisLeft` generate gridlines with red tick labels. The data is loaded as CSV from a GitHub gist, with the year parsed into a Date object and cost coerced to a number.

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