{"version":"1.0","type":"rich","title":"Axes with React & D3","description":"This example renders a horizontal bar chart of the top 10 countries by 2020 population using React and D3. It shows CSS-loaded data from a CSV file, with axes drawn manually. The code uses D3’s `scaleBand`, `scaleLinear`, and `csv` to fetch and scale data, while React’s `useState` and `useEffect` manage loading and state. SVG elements are generated in JSX, with tick marks and labels positioned via D3’s `ticks()` and the scales’ range.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/197f228e1d7945fd8c575a3dd7e31a01?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}