Area Chart ICE 7
✓ Published0🌍 Public
This example renders an area chart of exchange rates over the last week using D3 v5. The code loads CSV data via `d3.csv`, parses dates and numeric values, then uses `scaleTime` and `scaleLinear` to map data to SVG coordinates. It draws the area with `d3.area` and `curveBasis`, and adds labeled axes via `axisBottom` and `axisLeft`. Data is fetched from a GitHub gist, and the chart is displayed within a 960×500 SVG.
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