{"version":"1.0","type":"rich","title":"Ep21 Bar Chart with React/D3","description":"This example displays a horizontal bar chart of the top ten countries by projected 2020 population, sourced from a UN population dataset (CSV). Built with React and D3 v6, the app fetches data via `d3.csv`, sorts it, and renders SVG `<rect>` elements. It uses `scaleBand` for the y-axis countries and `scaleLinear` for the x-axis population values, with bar widths mapped to population counts and heights set by the band’s `bandwidth`. React’s `useState` and `useEffect` handle data loading, while `ReactDOM.render` mounts the chart into the root div.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3a2559fca75144ab80b79ab764748888?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}