AAChartCore-Kotlin icon indicating copy to clipboard operation
AAChartCore-Kotlin copied to clipboard

更新图形内容文档描述不准确

Open edwardzjl opened this issue 2 years ago • 0 comments

  • Android API version: 31
  • AAChart version: 7.1.0

文档aa_onlyRefreshTheChartDataWithChartModelSeriesaa_refreshChartWholeContentWithChartModel 方法在 7.1.0 版本中都不存在

我在源码中找到如下方法:

  • 更新整个 model: aa_refreshChartWithChartModelaa_refreshChartWithChartOptions
  • 只更新数据: aa_onlyRefreshTheChartDataWithChartOptionsSeriesArray

其中更新整个 model 的方法可以用, 然而只更新数据的方法不起作用, 控制台报错:

I/chromium: [INFO:CONSOLE(83)] "Uncaught TypeError: Cannot read property 'setData' of undefined", source: file:///android_asset/AAChartView.js (83)

edwardzjl avatar Jul 06 '22 08:07 edwardzjl