Skip to main content
100%

Temperature in SF Scatter Plot

✓ Published1🌍 Public
Eegrebing
Last edited Sep 21, 2020
Created on Sep 21, 2020

This scatter plot visualizes temperature over time in San Francisco, with each point positioned by timestamp on the x-axis and temperature in degrees Celsius on the y-axis. The points are colored by origin (USA, Japan, or Germany) using a d3.scaleOrdinal color mapping, with red, blue, and black. The visualization uses d3.scaleTime for the time-scaled x-axis and d3.scaleLinear for the y-axis, with axis grids and labels generated via d3.axisBottom and d3.axisLeft. Data is loaded from a CSV file hosted on VizHub, and custom SVG circles are rendered with d3.svg selection and appending, styled by the accompanying CSS.

AI-generated description

This code is designed to be a scatter plot starter that can be easily modified for different D3.js applications.

MIT Licensed

Similar vizzes