Skip to main content
100%

Area Chart Activity 8

✓ Published1🌍 Public
SSharankumar02
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This area chart displays the cost of sales from 2000 to 2013, with a smooth curve overlaid by a light-green filled region. The visualization uses D3 v5 to load CSV data, scale the time-based x-axis and linear y-axis, and render axis labels with custom styling. It employs `d3.area`, `d3.line`, and `d3.curveBasis` to generate the path elements, with axis ticks formatted using `d3.format`. The SVG output is positioned within a 920×400 canvas.

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