{"version":"1.0","type":"rich","title":"Margins & Axes","description":"This example displays the top 10 most populous countries as a bar chart, with country names on a band scale y-axis and population values on a linear x-axis, all framed by explicit margins. It uses React state to asynchronously load CSV data via `d3.csv` from the United Nations World Population Prospects 2019. The SVG rendering leverages `d3.scaleBand`, `d3.scaleLinear`, and `d3.max` to compute scales, while ticks for both axes are generated manually using `xScale.ticks()` and the domain values, with a `translate` transform to offset the chart within the margins.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a2d5f6ee8d2a46f9a8a8849446c41941?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}