By me Designed random bar graph
✓ Published0🌍 Public
This bar graph displays a shuffled sequence of nine values ranging from 100 to 900, rendered as uniformly spaced vertical bars. The chart uses a linear y-axis scale and a banded x-axis scale to position each bar, with alternating teal shades distinguishing adjacent bars. Built with React and D3 v5, the visualization loads random data via a custom `useData` hook, which shuffles a range using D3’s `shuffle` and `range` functions. The SVG output is sized dynamically based on the window, and the scaling is handled through `scaleLinear` and `scaleBand`, with inner padding applied to the x-scale for visual separation.
AI-generated descriptionReact Starter code.
MIT Licensed