{"version":"1.0","type":"rich","title":"Axes with React & D3","description":"This example demonstrates how to combine React with D3 to render a horizontal bar chart of UN population data for ten countries in 2020. The code uses React hooks like `useState` and `useEffect` to load and manage the CSV data, while D3’s `csv`, `scaleBand`, `scaleLinear`, and `max` functions handle data parsing and scaling. Axes are drawn manually as SVG elements, with x-axis ticks generated via `xScale.ticks()`, and the chart updates reactively as data loads.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/650202e314f44aca8bdf245f6ca4c629?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}