Search code examples
gwtgoogle-visualization

How to disable Google Visualizations Tool Tips?


Does anyone know how to disable the tool-tip boxes that popup when a Google Visualizations' chart is clicked (Selected)?

Following the sample code at Getting Started with Visualizations, the "zoom details" feature I've developed don't override the default tool tips.


Solution

  • There is a setEnableTooltip(boolean) method in CommonOptions. So I imagine you can set that option to false on the option object you pass in the constructor of your chart. e.g. based on Getting Started with Visualizations

    ...
    PieChart pie = new PieChart(createTable(), createOptions());
    ...
    private Options createOptions() {
      Options options = Options.create();
    ...
      options.setEnableTooltip(false);
      return options;
    }
    ...