{"version":"1.0","type":"rich","title":"React + D3 + useData Viz Starter","description":"This example demonstrates a minimal React + D3 starter template for building SVG visualizations with a reusable margin convention. It fetches Hepatitis C data from a CSV URL using a custom `useData` hook built with `useEffect` and `useState`, loading via D3’s `csv` method. A `VizContainer` component abstracts the SVG and group elements, translating the inner group by the specified margins and conditionally rendering gray rectangles to visualize the chart area. The code relies on CDN-loaded React 16, ReactDOM, and D3 v6, with dimensions hardcoded at 960 by 500 pixels.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3fbd9f6c551949d6ba9580170cc60117?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}