简体   繁体   English

ExtJS chart.series.add不是函数

[英]ExtJS chart.series.add is not a function

I have recently migrated from ExtjS 4 to 5.1. 我最近从ExtjS 4迁移到5.1。 My charts application will dynamically create the chart using chart.series.add function and chart.axes.items. 我的图表应用程序将使用chart.series.add函数和chart.axes.items动态创建图表。 This application was running fine with ExtJS4.2 该应用程序在ExtJS4.2上运行良好

With ExtJS5.1, I am getting this error: chart.series.add is not a function. 使用ExtJS5.1时,出现此错误:chart.series.add不是函数。 Even chart.series.clear is also giving same exception. 即使chart.series.clear也给出了相同的例外。

Can any one please help on how to add series and axes dynamically to CartesianChart? 谁能帮忙给CartesianChart动态添加系列和轴吗?

Thanks, Valli 谢谢,瓦利

该文档说它是chart.addSeries(series)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM