{"version":"1.0","type":"rich","title":"Bar chart using react and d3","description":"This gallery example demonstrates a horizontal bar chart that visualizes population data for various countries. The chart uses D3's `scaleBand` and `scaleLinear` functions to map country names to the y-axis and population values to bar widths, rendering the results as SVG rectangles. The data is loaded asynchronously from a CSV file via `d3.csv` and managed through React's `useState` and `useEffect` hooks. The visualization leverages React's declarative component model alongside D3's scaling utilities to produce a clean, interactive-free static chart.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/0292e2a323fd46cea95bbc8ae2645a4d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}