Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google chart line chart - turn off tooltip for a single column

I know this question was already asked before Using Google Visualization API, how to turn off tooltips for a single column?, but i didn't get familiar answer.Please can somebody tell me how to turn off tooltip for a single column?.I tried this

chart.draw(data, {trigger:'none'});

but it turns off tooltip for all the columns.I want only one column with tooltip disabled and all other columns should have enabled tooltip.

like image 942
user3445687 Avatar asked Dec 08 '22 08:12

user3445687


1 Answers

The option enableInteractivity: false blocked alse the series select option and etc.

You can do it with better way:

Option = {
  series : {      
          0: { tooltip : false}, // disable tooltip
          1: { tooltip : true}, // enable tooltip
          2: { tooltip : false},
          3: { tooltip : true},
          4: { tooltip : true},
      }
}

It works for me perfectly.

like image 72
Stack Overflow Avatar answered Mar 25 '23 06:03

Stack Overflow