🌍 Public
Viewing a saved revision (read-only)
6cee32245f5746a8ab2aedc73ee2e7fe
Bar Chart interactive
This interactive bar chart visualizes a dataset of 50 random values, with bars colored on a blue scale and labeled with their numeric values. Clicking the text prompt triggers an update that replaces the data with 25 new random values, resizing the bars accordingly. Built with D3 v6, the example uses the scaleBand and scaleLinear APIs to map data to SVG rectangles, while the d3.select method binds the click event to the paragraph element.
AI-generated descriptionA demonstration of how to start using D3 version 6.