Skip to main content
100%

Scatter Plot for Climate Data

✓ Published1🌍 Public
YYiyi Wu
Last edited Nov 20, 2024
Created on Sep 18, 2024

This scatter plot visualizes the relationship between year and average temperature for China using the Climate Dataset, with each circle representing a data point. A dropdown menu lets users select a specific year, although the current rendering only displays China’s full time series. The visualization uses D3’s `scaleLinear` and `axisLeft` to construct axes, while custom label helpers from `@wyy-47/axislabels` add axis titles. The `viz` function draws a gray inner rectangle and semi-transparent circles with `selectAll` and `join`, updating the SVG directly.

AI-generated description

A simple scatter plot with D3 showing the Climate Dataset.

MIT Licensed

Similar vizzes