Skip to main content
100%

Fork of Bar Chart interactive

✓ Published0🌍 Public
RRahulSai05
Last edited Mar 12, 2022
Created on Mar 12, 2022

This bar chart visualization displays a dataset of 50 randomly generated values as SVG rectangles, with each bar labeled by its numeric value and colored on a purple scale. Built with D3 version 6, the chart uses `d3.scaleBand` for the x-axis positioning and `d3.scaleLinear` for the y-axis scaling. Clicking the text above the chart triggers a one-time update that replaces the dataset with 25 new random values, recalculating the bar heights and positions accordingly.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes