Skip to main content
Public

Share visualization

Loading preview…

67. D3 Randomized Data

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

67. D3 Randomized Data

0
Aamakanju@nyit.edu
Last edited Feb 27, 2026
Created on Feb 23, 2026

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

Comments

Sign in to join the discussion.

MIT Licensed