{"version":"1.0","type":"rich","title":"D3: Drawing divs with data","description":"This example shows 25 randomly generated data values rendered as a series of inline-block bars. The code uses D3.js v7’s `d3.select` and the data join pattern with `.data()`, `.enter()`, and `.append()` to create `div` elements styled with a CSS class. Each bar’s height is computed dynamically by multiplying the integer data value (0–29) by 5 pixels, overriding the default 75-pixel CSS height. The data is generated client-side with a JavaScript loop and `Math.random()`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5d42197b89f043c2b99ab64352d803a0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}