{"version":"1.0","type":"rich","title":"react bar 2 margins w/ axis","description":"This example displays a horizontal bar chart of the top 10 countries by population for 2020, loaded from a CSV file via `d3.csv`. The visualization uses React with hooks (`useState`, `useEffect`) to manage the asynchronous data loading and render the SVG. D3’s `scaleBand` and `scaleLinear` position the bars and axes, while gridlines and tick labels are generated using `xScale.ticks()`. The chart is drawn inside an SVG with explicit margins, and text elements for the country labels are styled with a blue stroke.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5c6e13867ca94e59abc14d97f743ef59?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}