Skip to main content
100%

Area Chart

✓ Published0🌍 Public
CChaitanya Ratan Sree
Last edited Nov 6, 2024
Created on Nov 6, 2024
Forked from Hello VizHub

This example visualizes monthly website visitor counts over a five-year period, using a smooth area chart with a green fill and an overlaid orange line. The D3 v5 code loads CSV data from a GitHub Gist, parses the year field as dates, and renders the SVG chart on a 930×450 canvas. It employs `scaleTime`, `scaleLinear`, `area`, and `line` generators with `curveBasis` for smoothing, while `axisBottom` and `axisLeft` add labeled ticks with gridlines. Styling is handled via CSS classes for the area and line paths.

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