{"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 data from a CSV file loaded via the `csv` function from D3. The React `useState` and `useEffect` hooks fetch the data and manage the chart state. Axes are drawn manually with SVG elements, using `scaleBand` for the y-axis countries and `scaleLinear` for the x-axis population values, with tick marks generated from `xScale.ticks()`. Bars are rendered as SVG rectangles with widths mapped to population counts.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ed0f958b472e47a69f810140626ef8a7?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}