{"version":"1.0","type":"rich","title":"Making a Bar Chart with React & D3 P1","description":"This example shows a horizontal bar chart of the top ten countries by population in 2020, rendered as an SVG via React. It loads CSV data from a GitHub gist using D3’s `csv` utility, then maps the data to `rect` elements inside a `<g>` group. The scales—`scaleBand` for countries and `scaleLinear` for population—are created with D3 v5, while React’s `useState` and `useEffect` manage the asynchronous data fetch and re-render. The chart displays no axes or labels, focusing solely on the bars’ lengths.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/406a7cedf37c4c1c84b6198eedf16f4e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}