{"version":"1.0","type":"rich","title":"E22 - the Margin Convention on Basic Bar Chart","description":"This example shows a basic horizontal bar chart of regional trip volumes using the D3 margin convention. The chart loads CSV data from a GitHub gist with D3’s `csv` utility, then uses React hooks (`useState`, `useEffect`) to manage asynchronous data fetching. Rendering is done as SVG, with `scaleBand` for the categorical y-axis (regions) and `scaleLinear` for the numeric x-axis (trips). The margin object defines inner chart dimensions, and a transformed `<g>` element positions the bars within the SVG canvas.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/bbb3d9b068a14ece92e1c8498f5fe4c0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}