Activity71
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed