This is a minimum use case example of the javascript library slid3r
. It appends a slider into any SVG context you desire. See the library's main repo for more information.
Updated missing url https://rawgit.com/nstrayer/slid3r/master/dist/slid3r.js to https://cdn.jsdelivr.net/gh/nstrayer/slid3r/dist/slid3r.js
https://d3js.org/d3.v4.min.js
https://rawgit.com/nstrayer/slid3r/master/dist/slid3r.js