{"version":"1.0","type":"rich","title":"D3 Melting Data for Multiple Lines","description":"This visualization displays population trends over time for various world regions, with multiple colored lines representing different areas. The chart uses D3's `scaleTime` and `scaleLinear` to map the data for the x and y axes, and `scaleOrdinal` with `schemeCategory10` for line colors. The code uses D3's `nest` function to group the data by region name, and employs `line` with `curveBasis` for smooth curve rendering. The data is melted from UN population estimates and medium variant projections, covering years from 1950 to 2100. A custom `colorLegend` component renders the color guide for the regions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/233fa91697434697b1ba6eb143f1e0eb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}