🌍 Public
Viewing a saved revision (read-only)
e9aaa3c2f6f64c699c0184f02cf5adab
Fork of area chart
This example displays an area chart that visualizes yearly sales data from a CSV file. It uses D3.js to load and parse the data, then builds a chart with a steelblue filled area, axes, and labels for Year and Sales. The chart is rendered as an SVG element, with scales and an area generator created via `d3.scaleLinear` and `d3.area`. Axes are added using `d3.axisBottom` and `d3.axisLeft`.
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.