{"version":"1.0","type":"rich","title":"Loading Data with D3 and React","description":"This example shows a bar chart of the top 10 most populous countries for 2020, ranked by population, rendered as SVG in a React component. It demonstrates loading external CSV data with `d3.csv` in a React hook, then mapping that data to `scaleBand` and `scaleLinear` axes. Custom React components `AxisX` and `AxisY` programmatically draw ticks and labels using D3's scale methods, while bars are plain `<rect>` elements sized by the scales. The data originates from a UN population dataset hosted on GitHub.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/0533f4423ff8488883d4cec004dfeb00?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}