mjpn-2
✓ Published1🌍 Public
This example displays a set of 25 vertical teal bars of random heights, generated using a for loop that pushes numbers between 0 and 30 into a dataset. It renders with D3 v7, where `select` and `data().enter().append()` in `index.js` create each `div.bar` element, and the `style` method sets the bar height by multiplying the random value by 8 pixels. The layout fills the browser window, as the page uses no margins and the body text size is set to 13em.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed