Disable hover on HighCharts

后端 未结 10 727
长情又很酷
长情又很酷 2021-02-03 21:03

I have building a pie chart using HighCharts library, and here is my chart:

 // http://jsfiddle.net/t2MxW/20890/

    var chart = new Highcharts.Chart({
                 


        
10条回答
  •  囚心锁ツ
    2021-02-03 21:48

    In order to completely turn off tooltip and hover effects on a chart, it is needed to turn off the tooltip, disable hover state and set inactive data opacity to 100%.

    This answer is based on previous answers and shows a complete solution to the problem.

    This is the configuration which turns off the hover and tooltip effects:

      series: {
        states: {
          hover: {
            enabled: false
          },
          inactive: {
            opacity: 1,
          }
        }
      },
      tooltip: {
        enabled: false
      }
    

提交回复
热议问题