{"version":"1.0","type":"rich","title":"Making a Bar Chart with React & D3","description":"This example shows a horizontal bar chart of UN population data for the top 10 countries, rendered as SVG rectangles with randomly assigned colors. The React component uses the `useState` and `useEffect` hooks to load and store data fetched via `d3.csv`, while `d3.scaleBand` and `d3.scaleLinear` map countries and population values to screen coordinates. The chart displays loading text before the data arrives, then maps each row to a `<rect>` element with dimensions derived from the scales.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/47383dfd509a432e9fe70009391fdbb5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}