GDP Variation over time plot-2
✓ Published0🌍 Public
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 descriptionMIT Licensed