score:6

Accepted answer

you can try

 showtooltips: false

you can also use the following link

http://jsfiddle.net/tzq6q/298/

score:-10

if what you want is prevent any effect when hovering the mouse over any series, you should disable tooltip and hover state. you can do it like this:

$(function () {

    highcharts.chart('container', {
        plotoptions: {
        	series: {
            states: {
                      hover: {
                          enabled: false
                      }
                  }
          }
        },

        tooltip: {
            enabled: false
        },

        series: [{
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
        }]
    });
});
#reporting {
    position: absolute; 
    top: 55px; 
    right: 20px; 
    font: 12px arial, verdana; 
    color: #666;
    background: white;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>

<div id="container" style="height: 300px; min-width: 300px"></div>
<div id="reporting"></div>

(template taken from highcharts documentation).

hope it helps :)

score:0

as of 2020

simply put tooltips: false in your options object

score:0

you can try the following:

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

score:2

there's another option:

        states: {
            hover: {
                filter: {
                    type: 'none',
                }
            },
        },

score:2

just use

options: {
        events: ["mousemove", "mouseout", "click", "touchstart", "touchmove", "touchend"],
       
    }

just remove one of them, which you want to remove.

options: {
        events: ["mouseout", "click", "touchstart", "touchmove", "touchend"],
       
    }

score:163

in order to remove all hover styles/tooltips from vanilla chart.js:

var mychart = new chart(canvas, {
    options: {
        tooltips: {enabled: false},
        hover: {mode: null},
    }
    ...
});

chart.js is watching all mousemove events on the canvas within which it has instantiated your chart. setting hover 'mode' to null seems to override all the ways the canvas looks for matching elements to assign activated :hover classes to.

the tooltip event seems separate, so i had to use both lines to make the chart effectively static.

note, initial animations still work on a chart with these options.

update: newest chart.js has re-bundled the way hover is 'listened' for:

var mychart = new chart(canvas, {
    options: {
        events: []
    }
    ...
});

making the 'events' option an empty list (instead of ['click', 'hover', etc]) makes the chart blind'/static because it will be listening for no events.


Related Query

More Query from same tag