{"version":"1.0","type":"rich","title":"Making a Bar Chart with React and D3","description":"This example shows a horizontal bar chart ranking the top 10 countries by their 2020 population, rendered as SVG rectangles using React elements. The code loads CSV data from a GitHub gist using D3’s `csv` utility, then maps country names to y-coordinates via `scaleBand` and population values to x-widths via `scaleLinear`. Data loading and state management rely on React hooks (`useState`, `useEffect`), while D3 v7 provides the scales and `max` aggregation.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a49746055568417293e307490a6f954a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}