Socket
Socket
Sign inDemoInstall

chartjs-plugin-title-click

Package Overview
Dependencies
6
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chartjs-plugin-title-click

Adds support for basic onClick and onHover events to the chartjs title


Version published
Maintainers
1
Install size
5.50 MB
Created

Readme

Source

chartjs-plugin-title-click

A simple title onClick/onHover plugin for Chart.js

Configuration

To configure the title click plugin, add these options to your chart config:

{
    title: {
        onClick: function(e, titleBlock) {
            console.log("Clicked title!");
        },
        onHover: function(e, titleBlock) {
            console.log("Hovered title!");  
        },
        onLeave: function(e, titleBlock) {
            console.log("Leaved title!");  
        },
    }
}

Installation

To use, download chartjs-plugin-titleclick.js and reference it in your project.

Documentation

You can find documentation for the main plugin, Chart.js, at www.chartjs.org/docs.

There are some samples for this plugin in the samples folder.

License

chartjs-plugin-titleclick.js is available under the MIT license.

Keywords

FAQs

Last updated on 26 Jun 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc