Chart.js - how to disable everything on hover

后端 未结 6 1514
陌清茗
陌清茗 2021-02-01 15:30

How can I set the code that there will be no hover effects, hover options, (hover) links etc on chart?

I\'m using chart.js. Below is my code, where I set pie chart.

6条回答
  •  北海茫月
    2021-02-01 16:29

    You can try the following:

    const options = {
        ...
        tooltips:{
          enabled:false
        },
        ...
    }
    

提交回复
热议问题