{"version":"1.0","type":"rich","title":"Margin convention","description":"This example demonstrates the D3 margin convention by rendering a simple bar chart of UN population data for 2020. A React component uses `useState` and `useEffect` to load and parse the CSV, then renders an SVG with scaled rectangles via `scaleBand` and `scaleLinear`. The chart translates a group element by the specified margins, leaving the visualization area clear of axes or labels. Only the first four countries are displayed, with bars sized proportionally to their populations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2741aa93079843ad955bc7034b523f6d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}