Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart interactive

Public visualization

Viewing a saved revision (read-only)

be133800a9304baaba743fda1ddc819f

Bar Chart interactive

0 stars1🌍 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.