{"version":"1.0","type":"rich","title":"Drawing SVG shapes with D3","description":"This example illustrates two methods for creating a blue SVG rectangle: a static, hand-coded SVG element and a dynamically generated rectangle via D3. The static bar is defined directly in the HTML markup, while the D3 bar is built by chaining `d3.select` and `.append` calls. The code uses d3.v7 to append an SVG and style the rectangle with a `fill` style, showing the same visual output achievable through both declarative and programmatic approaches.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/806bcad7acfb4cb8adb157200ba492de?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}