开发者

How to disable Google Visualizations Tool Tips?

开发者 https://www.devze.com 2022-12-10 23:40 出处:网络
Does anyone know how to disable the tool-tip boxes that popup when a G开发者_StackOverflow中文版oogle Visualizations\' chart is clicked (Selected)?

Does anyone know how to disable the tool-tip boxes that popup when a G开发者_StackOverflow中文版oogle 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.


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;
}
...
0

精彩评论

暂无评论...
验证码 换一张
取 消