{"version":"1.0","type":"rich","title":"Axis with React and D3","description":"This example displays a horizontal bar chart comparing the 2020 populations of the top ten countries from a UN dataset, loaded via `d3.csv`. Using React for the user interface and D3's `scaleBand` and `scaleLinear` for axis scaling, the SVG renders tick marks and labels from `xScale.ticks()`. D3's `max` function determines the domain, and React’s `useState` and `useEffect` manage asynchronous data loading, with the bars themselves drawn as `rect` elements.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ad8fbf14c48d4a05af8a220713f1e63c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}