{"version":"1.0","type":"rich","title":"Bar chart with margins&axes","description":"This example visualizes the top 10 countries by 2020 population from a UN dataset as a horizontal bar chart. The React app loads CSV data with D3’s `csv` method, then uses `scaleBand` and `scaleLinear` to map countries and population values to SVG rectangles. Axes are drawn manually with `xScale.ticks()` for x-axis grid lines and labels, while y-axis country names are positioned using the band scale. The chart includes margins and a left-aligned plot area, rendered entirely as SVG.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8ef91431b94c441b929aeb7398b15a59?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}