{"version":"1.0","type":"rich","title":"Margin convention","description":"This example shows a horizontal bar chart of country populations derived from a CSV file of 2020 data, with bars rendered in SVG using React. The visualization demonstrates the margin convention by using a fixed outer width and height, subtracting top, right, bottom, and left margins to calculate an inner plotting area, then applying a transform to a `<g>` element. It loads the dataset with `d3.csv`, converts the population column to numbers, and scales the bars with `scaleBand` for the y-axis and `scaleLinear` for bar widths based on the maximum population.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/65ff4356e7024339a63dfc5580a2649b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}