{"version":"1.0","type":"rich","title":"D3 Bar chart","description":"This example displays a horizontal bar chart of United Nations population estimates for 2020, using React to manage state and render SVG rectangles. The code loads CSV data via `d3.csv`, then maps country names to a `scaleBand` y-axis and population values to a `scaleLinear` x-axis. Each bar’s width is set by the scaled population, with heights determined by `yScale.bandwidth()`. The chart updates once data arrives, showing a loading message until then.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a11e48e2dec144cfb9b7d67fc315dd0a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}