Q2
✓ Published0🌍 Public
This example displays monthly temperature data as a filled area chart rendered in SVG. It uses D3’s `scaleBand`, `scaleLinear`, `area`, and `max` functions to map months and temperatures, with axes added via `axisBottom` and `axisLeft`. The area’s color is steelblue, and axis labels indicate “Month” and “Temperature (°C)”. The dataset is a static array of twelve month-temperature pairs, and the chart is generated by selecting the body and appending an 800 by 500 pixel 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