AAChartCore-Kotlin
AAChartCore-Kotlin copied to clipboard
更新图形内容文档描述不准确
- Android API version: 31
- AAChart version: 7.1.0
文档 中 aa_onlyRefreshTheChartDataWithChartModelSeries
和 aa_refreshChartWholeContentWithChartModel
方法在 7.1.0 版本中都不存在
我在源码中找到如下方法:
- 更新整个 model:
aa_refreshChartWithChartModel
和aa_refreshChartWithChartOptions
- 只更新数据:
aa_onlyRefreshTheChartDataWithChartOptionsSeriesArray
其中更新整个 model 的方法可以用, 然而只更新数据的方法不起作用, 控制台报错:
I/chromium: [INFO:CONSOLE(83)] "Uncaught TypeError: Cannot read property 'setData' of undefined", source: file:///android_asset/AAChartView.js (83)