{"version":"1.0","type":"rich","title":"Crappy Bar Chart with React and D3","description":"This example displays a horizontal bar chart of the top ten countries by 2020 population, using UN population data loaded via `d3.csv`. React manages the component state and renders SVG `<rect>` elements, while D3’s `scaleBand` and `scaleLinear` position and size the bars. The `useEffect` hook fetches the CSV once, and `max` computes the domain for the x-axis. Although titled \"crappy,\" the chart cleanly shows relative population sizes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/216cfeae9cb14bd69f6b6035d90ad836?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}