Range slider snapp to ticks

Hi all,

I am trying to find a way to make the rangeslider (the one from the layout not the components) to select exact data object, i.e., I want it to snap to bars of barchart or histogram and not linger in the middle. Something like this example from d3 http://bl.ocks.org/cdagli/3f6b27139323e59e0b445de1a04615c3

Is there a way to enforce this behaviour?