🌍 Public
Viewing a saved revision (read-only)
807573cf95734e99b6ace7e02be90706
Assignment-2(b)
This area chart visualizes temperature values across different cities, with a light blue filled region spanning from the baseline to each city’s temperature point. The chart uses D3 v7 to fetch a remote CSV file, parse it with `d3.csvParse`, and render the visualization as an SVG. It employs `d3.scaleBand` for the categorical x-axis, `d3.scaleLinear` for the temperature y-axis, and `d3.area` to generate the filled path. Axes are drawn with `d3.axisBottom` and `d3.axisLeft`, including rotated city labels and a y-axis title.
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.