{"version":"1.0","type":"rich","title":"Axes with React & D3","description":"This example shows a horizontal bar chart of the top 10 most populous countries in 2020, using React to render the SVG elements and D3 to load and scale the data. The code uses `d3.csv` to fetch UN population data, `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the numeric x-axis, and manually generates axis ticks with `xScale.ticks()`. D3’s `max` helper computes the domain, while React manages the loading state and maps data points to `<rect>` and `<text>` elements.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ac11356b368d4fd6907f888b1157354b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}