Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot for Climate Data

Public visualization

Viewing a saved revision (read-only)

46f93866a9db49cfa597fe1fc406eaa6

Scatter Plot for Climate Data

0 stars1🌍 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 Penguins Dataset.

Challenge

  • Fork this viz
  • Modify it to show your data