Bar Chart with Brushing
✓ Published0🌍 Public
This interactive bar chart demonstrates how brushing can reconcile the trade-off between a zero baseline and emphasizing small differences. The visualization displays two horizontal bars comparing scores across groups, rendered as SVG rectangles using React components. A linked brushing interface, implemented with d3.brushX, allows users to select a region on the top chart, which then dynamically updates the bottom chart’s x-scale domain via d3.scaleLinear. The data originates from a CSV file loaded with d3.csv, and React’s useState hook manages the brush extent state for responsive zooming.
AI-generated descriptionFollow the best practice of having a zero baseline? Or emphasize small (but practically significant) differences by changing the baseline?
Why not both?
MIT Licensed