{"version":"1.0","type":"rich","title":"Fork of Viz Function Concept","description":"This example demonstrates the \"viz function\" concept, a refactored pattern for encapsulating configurable visualization logic. The code renders a single gray inner rectangle within an SVG canvas, with margins and dimensions passed as parameters to a reusable `viz` function. Using D3.js `select` and `join`, the example shows how to structure a visualization with a clean separation between setup and rendering, making the logic adaptable and reusable. The `viz.js` module defines the core drawing behavior, while `index.js` supplies the configuration values.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7ae84ee26e87471f950a8d2063858ee9?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}