Skip to main content
100%

Bar Chart interactive

✓ Published1🌍 Public
DDasbach.EJ
Last edited Apr 21, 2021
Created on Apr 20, 2021

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes