Chart.Crosshairs.js

0.1.0 • Public • Published

Chart.Crosshairs.js

Crosshairs plugin for Chart.js.

Demo

Demo

Download

Compress
Uncompress

Installation

You can also install Chart.Crosshairs.js by using Bower.

bower install Chart.Crosshairs.js

Usage

JavaScript
```JavaScript
new Chart(ctx, {
  type: type,
  data: data,
  options: {
    crosshairs: {
      // mode 'vertical', 'horizontal' or 'both', default is 'vertical'
      mode: 'vertical',

      // line color, default is 'gray'
      color: 'gray',

      // line width, default is 1
      lineWidth: 1
    }
  }
});

License

The project is released under the MIT license.

Contact

The project's website is located at https://github.com/emn178/Chart.Crosshairs.js
Author: Chen, Yi-Cyuan (emn178@gmail.com)

Readme

Keywords

Package Sidebar

Install

npm i Chart.Crosshairs.js

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • emn178