{"version":"1.0","type":"rich","title":"Fork of Choropleth Map with Interactive Filtering","description":"This fork of a D3 v5 choropleth map displays global economic data from the world-atlas dataset, with countries colored by an ordinal spectral scale. Users can click items in the attached color legend to filter the map, dimming non-matching countries and highlighting selected ones. The code uses `d3.geoPath` with a natural Earth projection and `d3.scaleOrdinal` to map values to colors, while the legend’s click handler toggles the `selectedColorValue` to update opacity and stroke width. Hovering over countries also turns them red, with tooltips showing names and values.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a7808ad828c346a892aabd74066d538e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}