{"version":"1.0","type":"rich","title":"Axis with React","description":"This example shows a horizontal bar chart of the top 10 countries by population in 2020, using data loaded from a CSV file via `d3.csv`. React renders an SVG containing scaleBand and scaleLinear axes, with custom tick marks and labels generated from `xScale.ticks()`. The bars are drawn as `<rect>` elements using D3’s scale functions, while React hooks (useState, useEffect) manage data loading and state. The chart updates automatically once the data arrives, displaying a clean, styled visualization with a left margin for country names.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7ddda93ff0eb4dca96be78dacfd34ed8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}