Skip to main content
100%

Class 6 ScatterPlot

✓ Published0🌍 Public
MMTClass
Last edited Mar 12, 2017
Created on Mar 12, 2017

This visualization plots earthquake magnitudes against time over a week, using a scatterplot with circles positioned by time on the x-axis and magnitude on the y-axis. The code overlays a line path connecting the data points via d3.line, though the primary focus is the scatter of events. It loads live data from the USGS earthquake feed as CSV, parses timestamps with d3.utcParse, and applies d3.scaleTime and d3.scaleLinear for axes. The SVG is rendered with D3 v4, and hovering over a dot turns it red. The visualization also attempts to add a legend, but the referenced color scale is undefined, so no legend appears.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes