{"version":"1.0","type":"rich","title":"The margin convention","description":"This example demonstrates the \"margin convention\" for chart layout by rendering a horizontal bar chart of cervical cancer patient counts across Indian states and territories. Using React for the user interface, the visualization loads the data via D3's `csv` utility and scales the bars with `scaleBand` and `scaleLinear`. The implementation explicitly defines a margin object that subtracts from the total SVG dimensions to establish an inner plotting area, and the bars are positioned and sized within a translated group using those margins.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/22f6743961544c1d921ac2b3a0dcd900?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}