Skip to content

Instantly share code, notes, and snippets.

@jcardente
jcardente / slider.js
Created Nov 2, 2015
Slider control in D3js
View slider.js
// Simple slider control in D3js.
// Based on Mike Bostock's example
// http://bl.ocks.org/mbostock/6452972
// Slider in D3
function makeSlider(label, x,y,scale,cb) {
var brush = d3.svg.brush()
.x(scale)
.extent([0,0])
.on("brush", brushed);