Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove tooltip from charts.js

I am using a plugin: charts.js

On hovering a radar chart (the bullets in it) a tooltip is shown. How can I remove it?

like image 429
twan Avatar asked Dec 02 '25 13:12

twan


2 Answers

A layout for a chart with no tooltips would look like this:

var chart = new Chart(ctx, {
    type: 'line',
    data: data,
    options: {
        tooltips: { enabled: false },
        ...
        }
     })

I know some others have said exactly this, but this is a more complete example.

like image 69
Brett Jeffreson Avatar answered Dec 05 '25 04:12

Brett Jeffreson


This is the code to Disable the tooltip option..

Chart.defaults.global.tooltips.enabled = false;

like image 26
jsjq-finder Avatar answered Dec 05 '25 03:12

jsjq-finder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!