{"version":"1.0","type":"rich","title":"drawing squares","description":"This example demonstrates how to draw a series of rectangles whose widths correspond to values in a local data array. The rectangles are vertically aligned and randomly colored, with a tooltip appearing on mouseover to display each rectangle’s value. The visualization uses D3.js v5 via a CDN import, leveraging `d3.select`, `d3.sum`, and `.enter()` to build SVG rectangles. The code also imports a local ES6 module for the message text and uses D3 event handling with `d3.event` for positioning the tooltip.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5e2dd35b6b5e4150b58b1843cfdff92c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}