{"version":"1.0","type":"rich","title":"Making a Bar Chart with React & D3","description":"This example shows a horizontal bar chart of country populations, with each bar’s length proportional to its population value from a local CSV file. The visualization combines React’s `useState` and `useEffect` hooks to asynchronously load data via `d3.csv`, while `d3.scaleBand` and `d3.scaleLinear` map country names and population counts to SVG rectangle positions and widths. The chart renders as an SVG using React components, with `d3.max` determining the x-axis scale domain.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3b454655e2704f36b32b25994992e6ef?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}