{"version":"1.0","type":"rich","title":"Making a Bar Chart with React & D3","description":"This example shows the projected population of 15 countries in 2060 as a horizontal bar chart, using data from the UN Population Projections CSV file. It loads the data with the `csv` function, then scales the bar lengths with `scaleLinear` and positions country labels with `scaleBand`. The chart renders as SVG elements—`rect` bars, `line` gridlines, and `text` labels—all coordinated through React state management with `useState` and `useEffect` for fetching, and the D3.js v5 library for layout and scaling.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/e1d1f5c983ff41a780c8aaab8e597c71?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}