🌍 Public
Viewing a saved revision (read-only)
93a356fe605446548546fe594975c43e
67. D3 Randomized Data
A bar chart displays 20 vertical bars whose heights and blue color intensities correspond to values in a static array. Clicking the text prompt replaces the dataset with 20 new random integers between 0 and 24, then animates the bars and their value labels using `transition` with `delay` and `duration`. The chart uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with SVG `rect` and `text` elements. Data is updated via a click handler on a paragraph element.
AI-generated description