Skip to main content
100%

Debounced slider

✓ Published0🌍 Public
YYouthBread
Last edited Nov 7, 2017
Created on Nov 7, 2017

Two horizontal sliders control the same date range, showing the difference between immediate and debounced drag handling. The top slider updates continuously as the mouse moves, while the bottom slider delays its updates by 200 milliseconds, using a custom `debounceD3Event` wrapper around `d3.drag`. Both sliders use `d3.scaleTime` and `d3.axisBottom` to render a year-based axis, and display the selected year range in a header caption via `d3.timeFormat`. The SVG rectangles that serve as draggable handles are repositioned with `transform` attributes.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes