🌍 Public
Viewing a saved revision (read-only)
2bf723e44a0d47e99777411a4fb0ec35
Activity-9_Question-2
This example shows a D3.js area chart of average weekly temperatures, using a fixed sample dataset of seven days with values in Celsius. The chart renders as an SVG, with a steel-blue filled area beneath a line that plots each day’s temperature. The implementation uses a `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and a `d3.area` generator to create the path. Axes are drawn with `d3.axisBottom` and `d3.axisLeft`, and the chart includes labels for both axes.
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.