我在Ionic 2应用上安装了 Ng2GoogleChartsModule 。我想通过点击按钮选择一个点。在原始Google图表上有setSelection()函数,但我在Ng2GoogleChartsModule中找不到它。
你能帮我吗?这项工作
让googleChartWrapper = this.cchart1.wrapper; this.cchart1.redraw();
这不起作用
让googleChartWrapper = this.cchart1.wrapper; this.cchart1.setSelection();
错误:setSelection它不是一个函数
答案 0 :(得分:0)
setSelection
是一种图表方法
您可以在包装器上使用getChart
来获取图表,
然后设置选择...
let googleChartWrapper = this.cchart1.wrapper;
googleChartWrapper.getChart().setSelection(...);