selectively disabling tooltips

26 views
Skip to first unread message

Robert Snyder

unread,
Mar 21, 2018, 8:13:33 PM3/21/18
to Google Visualization API
I have a chart where I would like to hide some data I tried to selectively disable the tooltips, but it did not work.
I can make all other aspects of the data disappear, but not the tooltips.  Is it possible to make the tooltips selectively diappear?
This is what I tried:

          series: {

                  0:{color: 'transparent', visibleInLegend: false, tooltip: {trigger: 'none'}},

                  1:{color: 'transparent', visibleInLegend: false, tooltip: {trigger: 'none'}},

                  2:{color: 'orange', visibleInLegend: true},

                  3:{color: 'transparent', visibleInLegend: false, tooltip: {trigger: 'none'}},

                  4:{color: 'purple', visibleInLegend: true}

              },

Robert Snyder

unread,
Mar 21, 2018, 8:31:29 PM3/21/18
to Google Visualization API
Found this and it is a bit of a sledgehammer, but it works for me

series: {

                  0:{color: 'transparent', visibleInLegend: false, enableInteractivity: false},

                  1:{color: 'transparent', visibleInLegend: false, enableInteractivity: false},

                  2:{color: 'orange', visibleInLegend: true},

                  3:{color: 'transparent', visibleInLegend: false, enableInteractivity: false},

                  4:{color: 'purple', visibleInLegend: true}

              },

Reply all
Reply to author
Forward
0 new messages