Skip to main content
100%

Area Chart Activity 8

✓ Published0🌍 Public
Aanith462@gmail.com
Last edited Jul 19, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

This area chart displays the cost of sales from 2000 to 2013, with a green filled region beneath a black curved line. The visualization uses D3 v5’s `scaleTime`, `scaleLinear`, `area`, and `line` generators with `curveBasis` to create the smoothed path. The SVG rendering includes gridlines via `axisBottom` and `axisLeft`, with tick labels formatted using `format('.3s')`. Data is loaded as CSV from a GitHub gist, parsed with `csv()`, and dates are converted using the native `Date` constructor. Axis labels and titles are styled via CSS classes.

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