{"version":"1.0","type":"rich","title":"The margin convention on bar chart","description":"This example demonstrates the margin convention in bar charts, showing how to position axes and plot marks within a designated plotting area. It uses React to render SVG elements and d3’s `scaleBand` and `scaleLinear` to map countries and population values from a CSV loaded via `d3.csv`. Grid lines and tick labels are generated from `xScale.ticks()`, with the plot group translated by a specified margin inset from the SVG viewport.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4f5d96631684496780a5d172d2634b95?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}