🌍 Public
Viewing a saved revision (read-only)
63177156b45046ecbefc45d9bb73901d
Assignment 9(2)
This example shows monthly temperature averages in New York City from 2019 through 2020, using an area chart to highlight the cyclical rise and fall of temperatures across the calendar year. The SVG visualization, built with D3.v7, employs `d3.scaleBand` for the monthly x-axis, `d3.scaleLinear` for the temperature y-axis, and `d3.area` to generate the filled path with a steelblue color. Axis labels and a title are added via `d3.axisBottom`, `d3.axisLeft`, and text elements, with all data hardcoded in the script.
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.