Area Chart
✓ Published0🌍 Public
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 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