Chart.JS-RangeSlider
A range slider plugin for Chart.JS, that enables you to select a specific data scales.
Demo
JSFiddle: https://jsfiddle.net/schme16/xfyvvup8/195/
Installation:
bower install chart.js-rangeslider --save
npm install chart.js-rangeslider --save
or straight from the source:
Dependencies
- jQuery (for now)
- Chart.js
- noUISlider
Which one should I use?
- Include the version that suits you best; the library comes in three flavours:
- Solo: Only the plugin is included.
- Minimal: The plugin and the slider library noUISlider is included
- All: This one is batteries included, as such it come with jQuery, Chart.js noUISlider and the plugin all bundled together.
Usage
new RangeSliderChart({
chartData: chartJSDatasets,
chartOpts: chartJSOptions,
chartType: 'Line',
chartCTX: ctx,
class: 'my-chart-ranger',
initial: [3, 10]
})