🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

chartist-hover

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chartist-hover

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

1.0.5
latest
Source
npm
Version published
Weekly downloads
2.1K
-31.32%
Maintainers
1
Weekly downloads
 
Created
Source

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
      })
    ]
  }
);

Keywords

chartist

FAQs

Package last updated on 15 May 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