Question2-Area CHart
✓ Published0🌍 Public
This example shows a static area chart comparing average temperatures across different cities, with labeled x- and y-axes. The visualization loads CSV data from a GitHub gist and uses D3 v7's `d3.csvParse`, `d3.scaleBand`, `d3.scaleLinear`, and `d3.area` to generate the filled path. Axes are drawn with `d3.axisBottom` and `d3.axisLeft`, rendered as SVG within a 900x500 canvas, and the chart includes rotated city labels and a rotated y-axis title.
AI-generated descriptionAn example showing the capabilities of VizHub are follows:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed