AAChartModel / AAChartKit

📈📊🚀🚀🚀An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的现代化声明式数据可视化图表框架,支持柱状图、条形图、折线图、曲线图、折线填充图、曲线填充图、气泡图、扇形图、环形图、散点图、雷达图、混合图等各种类型的多达几十种的信息图图表,完全满足工作所需.
https://cocoapods.org/pods/AAChartKit
MIT License
4.71k stars 750 forks source link

bug问题,数据超过一千条不显示,上万条直接卡死。 #1437

Open 13662049573 opened 1 year ago

13662049573 commented 1 year ago

这个库有个问题,数据超过一千条就不显示了,上万条数据,直接卡死。

AAChartModel commented 1 year ago

AAChartKit 是基于 Highcharts.js 的, 出现此问题的原因, 参考:

AAChartModel commented 1 year ago

解决方案参考:

AAChartModel commented 1 year ago

由于为了避免为 AAChartKit 增加不必要的体积, 影响图表的渲染速度, 所以AAChartKit 中没有引入该boost.js模块(也就是说不支持此功能).

你可以选择直接自行使用 WKWebView 嵌入 Highcharts.js 和其拓展模块 boost.js.

AAChartModel commented 1 year ago

或者, 你也可以选择使用 Highcharts 的官方 wrapper, 官方的应该内置了 boost.js 模块, 参考: