🌍 Public
Viewing a saved revision (read-only)
f95cf48c69e0438eae7ee16af0745eea
sample 2
This scatter plot visualizes global warming trends by plotting annual temperature anomalies against years. The code loads a CSV dataset from a GitHub repository, converts the year and temperature strings to numbers, and renders them as semi-transparent steelblue circles. It uses D3 v7’s `scaleLinear`, `d3.extent`, `d3.axisBottom`, and `d3.axisLeft` to map data to SVG coordinates and draw axes. The resulting chart highlights the relationship between time and temperature change, with labeled axes for year and temperature in degrees Celsius.
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.