finishing touches on a range slider | d3-simple-slider

All you need to do is to alias d3-selection to d3:

d3 = require.alias({'d3-selection': 'd3'})('d3@5', 'd3-simple-slider@1.4.1')

and then access the slider via d3.sliderBottom.

With the aliased require d3-simple-slider will be fed the d3 module instead of d3-selection.

1 Like