Skip to content

Instantly share code, notes, and snippets.

@benheb
Created April 16, 2013 15:59
Show Gist options
  • Select an option

  • Save benheb/5397168 to your computer and use it in GitHub Desktop.

Select an option

Save benheb/5397168 to your computer and use it in GitHub Desktop.
var HorizontalRangeSlider = declare([HorizontalSlider, RangeSlider], {
templateString: hTemplate
});
this._slider = new HorizontalRangeSlider({
name: 'histogram-slider',
values: [0, 100],
minimum: 0,
maximum: 100,
showButtons: false,
intermediateChanges: true,
discreteValues: 2,
style: "width:100%",
onChange: function(values){
var min = Math.floor(values[0]);
var max = Math.floor(values[1]);
self._getUserExtents(min, max);
self._disableBins(min, max);
}
}, "histogram-slider");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment