Skip to main content
100%

Variation of GDP over time for USA and Germany

✓ Published3🌍 Public
MMukund Khandelwal
Last edited Nov 4, 2018
Created on Oct 2, 2018
Forked from Plays over Time

This example shows the variation of GDP over time for the USA and Germany as a scatterplot, with each country’s annual GDP values plotted as colored points. Users can click the legend to highlight one country’s data while dimming the other. The visualization uses d3.csv to load data, d3.scaleLinear for axes, d3.axisBottom and d3.axisLeft for ticks, and d3.scaleOrdinal with schemeCategory10 for colors. The legend renders as SVG circles with interactive click handlers, and the scatterplot updates point opacity based on the selected country.

AI-generated description
MIT Licensed

Similar vizzes