Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

GDP Variation over time plot-2

Public visualization

Viewing a saved revision (read-only)

17dda200ab5d4cbaa80819f08dbc5126

GDP Variation over time plot-2

0 stars0🌍 Public
MMukund Khandelwal
Last edited Oct 2, 2018
Created on Oct 2, 2018

This example displays GDP variation over time as a scatter plot, with each circle colored by year and an interactive legend that filters and highlights selected time periods. The visualization loads CSV data from an external URL and renders SVG elements using d3.v5, employing scaleOrdinal with schemeRdYlBu for categorical colors, axisBottom and axisLeft for axes, and a custom colorLegend module that responds to click events to toggle opacity and highlight datapoints. The scatterPlot component uses d3.scaleLinear for positioning, with grid lines and labels provided by d3 axes.

AI-generated description