{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example demonstrates a bar chart of stock closing prices using the margin convention, where a React component manages the loaded CSV data via `useState` and `useEffect`. The chart maps product names to a `d3.scaleBand` y-axis and closing values to a `d3.scaleLinear` x-axis, rendering SVG rectangles. Data is fetched asynchronously with `d3.csv` and limited to the first ten rows. A fixed margin of 20 pixels on each side defines the inner plotting area, with axes translated to that offset.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a2d253aa368741d8862734541376e910?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}