Skip to content

Instantly share code, notes, and snippets.

View rassie's full-sized avatar

Nikolai Prokoschenko rassie

  • Nürnberg, Germany
View GitHub Profile
rassie /
Last active December 27, 2015 21:19 — forked from mbostock/.block
Smooth slider with snap-in on round values

By customizing the display of D3’s brush component, you can make a single-handle slider. Or, by using custom resize handles, you can make a two-handled slider.

Updated from mbostock's original Smooth Slider to including snapping on round values.