Skip to main content
100%

simple chart not working

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

This example attempts to draw a time-series line chart of earthquake magnitudes using D3 v4, plotting time against magnitude for data loaded from the USGS earthquake feed. The code defines a line generator with d3.line, uses d3.scaleTime and d3.scaleLinear for axes, and renders an SVG path with a steelblue stroke. However, the visualization fails because the CSV URL is mistakenly passed as the literal string "url" to d3.csv, so no data loads and the chart remains empty.

AI-generated description

Built with blockbuilder.org wonder why not working

mit Licensed

Similar vizzes