点角度选择Ng2GoogleChartsModule(谷歌图表)

时间:2018-02-08 08:19:11

标签: angular ionic-framework google-chartwrapper

我在Ionic 2应用上安装了 Ng2GoogleChartsModule 。我想通过点击按钮选择一个点。在原始Google图表上有setSelection()函数,但我在Ng2GoogleChartsModule中找不到它。

你能帮我吗?

  

这项工作

让googleChartWrapper = this.cchart1.wrapper; this.cchart1.redraw();

  

这不起作用

让googleChartWrapper = this.cchart1.wrapper; this.cchart1.setSelection();

错误:setSelection它不是一个函数

1 个答案:

答案 0 :(得分:0)

setSelection是一种图表方法
您可以在包装器上使用getChart来获取图表,
然后设置选择...

let googleChartWrapper = this.cchart1.wrapper;
googleChartWrapper.getChart().setSelection(...);