Fork of Bar Chart interactive
✓ Published0🌍 Public
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 descriptionA demonstration of how to start using D3 version 6.
MIT Licensed