{"version":"1.0","type":"rich","title":"Axes with React & D3","description":"This example shows a horizontal bar chart of UN population data for ten countries in 2020, rendered as SVG using React and D3. The React component manages the loaded CSV data with `useState` and `useEffect`, while D3’s `csv`, `scaleBand`, `scaleLinear`, and `max` utilities handle data loading and scaling. Axes are drawn manually by iterating over `xScale.ticks()` and the y-scale domain, with tick labels and lines positioned via transforms. The bars are `rect` elements sized by the scales within a translated group.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/063ffb3e824b400aab523652082132f1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}