谷歌泡沫图表数据更改错误

时间:2022-04-06 20:37:18

I am using Google's BubbleChart using directive 'https://github.com/angular-google-chart/angular-google-chart'

我正在使用谷歌的BubbleChart使用指令'https://github.com/angular-google-chart/angular-google-chart'

Whenever i try changing the data in controller or resize the window the chart gives and error Cannot read property 'clone' of undefined

每当我尝试更改控制器中的数据或调整窗口大小时图表给出并且错误无法读取未定义的属性“克隆”

I have tried to redraw the chart by manually firing the $rootScope.$emit('resizeMsg');

我试图通过手动触发$ rootScope来重绘图表。$ emit('resizeMsg');

but it is not working.

但它不起作用。

Thanks in advance

提前致谢

1 个解决方案

#1


0  

If you are using

如果你正在使用

animation

with bubble chart it might give error on draw or redraw, that's why you get the error.

使用气泡图表可能会在绘制或重绘时出错,这就是您收到错误的原因。

remove the animation and try again.

删除动画,然后重试。

#1


0  

If you are using

如果你正在使用

animation

with bubble chart it might give error on draw or redraw, that's why you get the error.

使用气泡图表可能会在绘制或重绘时出错,这就是您收到错误的原因。

remove the animation and try again.

删除动画,然后重试。