{"version":"1.0","type":"rich","title":"Axes with React and D3","description":"This example shows a horizontal bar chart of the top 10 most populous countries in 2020, rendered as SVG inside a React component. The visualization uses React state and hooks to load CSV data from a GitHub gist, then applies D3’s `scaleBand` and `scaleLinear` to position bars and generate axis ticks. Manually drawn grid lines and tick labels for both axes are created by mapping over `xScale.ticks()` and the y-scale’s domain, with a fixed margin convention shaping the inner chart area.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4ecef4e8168f49eeb6146eabc35dbd1f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}