Skip to main content
100%

Activity71

✓ Published0🌍 Public
Vvishu.valandas@gmail.com
Last edited Nov 7, 2024
Created on Nov 7, 2024
Forked from Hello VizHub

This example shows a gradient-filled area chart of sales over time, using D3 v7. It loads data from a CSV file hosted on GitHub Gist and renders the visualization as an SVG. The code uses `d3.area` to generate the area path, `d3.scaleLinear` for both axes, and `d3.axisBottom`/`d3.axisLeft` for tick marks. A custom `linearGradient` with two color stops fills the area, and the chart includes labeled x- and y-axes. The page also imports a local ES6 module to demonstrate modular code.

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