New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chart.js-rangeslider

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chart.js-rangeslider

This adds the option of having a range slider to your charts, to allow you to select a specific data scale

  • 1.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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, //The same data you give to Chart.js
	chartOpts: chartJSOptions, //Your Chart.js options
	chartType: 'Line', //Which Chart.js chart you want (eg. Lie, Bar, Pie, etc.)
	chartCTX: ctx, //your canvas context

	class: 'my-chart-ranger', //Specifies a custom class you want applied to your sliders

	initial: [3, 10] //Which data points to start the sliders on
})

Keywords

FAQs

Package last updated on 23 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc