1.0.5 • Published 6 years ago

chartist-hover v1.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

chartist-hover

Chartist plugin that adds a hover event to each point, slice or bar on your chart.

Install

Yarn

yarn add chartist-hover

npm

npm install chartist-hover

Global

<script src="https://your-domain.com/chartist-hover.js"></script>

Usage

var chart = new Chartist.Line(
  ".ct-chart",
  {
    labels: [1, 2, 3, 4, 5, 6, 7],
    series: [[1, 5, 3, 4, 6, 2, 3], [2, 4, 2, 5, 4, 3, 6]]
  },
  {
    plugins: [
      Chartist.plugins.hover({
        onMouseEnter: () => null,
        onMouseLeave: () => null,
        triggerSelector: null
      })
    ]
  }
);
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago