Giter Club home page Giter Club logo

Comments (12)

AAChartModel avatar AAChartModel commented on June 9, 2024

你这个截图是根据 demo 中的示例改的, demo 中的示例曲线全部都是用的渐变色.

  • 渐变色相对纯色会更影响性能一点, 换成纯色应该会好一点.
  • 禁用 tooltip 的动画效果, 也会稍微好一点儿.

from aachartkit.

AAChartModel avatar AAChartModel commented on June 9, 2024

如果还不行的话, 那可能就是因为这么多的数据量, 达到 Highcharts 的性能上限了.

from aachartkit.

AAChartModel avatar AAChartModel commented on June 9, 2024

如果是达到 Highcharts 在移动端的性能上限的原因的话, 那就只能是:

  1. Highcharts 换成 Highstock
  2. 或者添加额外的性能模块 boost.js

参考:

不过这两个方法都需要你自己会一点 JavaScript 了, 需要自己添加 Highcharts 相关的依赖库了.

from aachartkit.

AAChartModel avatar AAChartModel commented on June 9, 2024

这种大数据量的图表展示, 如果是强需求的话, 建议你最好还是用一些其他的 iOS 原生图表库吧. 基于前端的使用 WebView 的图表框架, 在移动端的性能上限确实不如原生.

from aachartkit.

253855115 avatar 253855115 commented on June 9, 2024

同一个库同样的参数设置,我用安卓手机测试就不会卡,苹果手机就会卡,这是什么原因?

from aachartkit.

AAChartModel avatar AAChartModel commented on June 9, 2024

分别是什么配置的安卓手机和苹果手机? 多大的数据量? 是真机吗?

from aachartkit.

253855115 avatar 253855115 commented on June 9, 2024

我用低配的安卓手机和低配苹果手机,高配的安卓手机和高配苹果手机进行测试过,跟手机关系不大,我下载AAChartKit库的安卓版和iOS版进行对比,都使用曲线图时,设置的曲线数据源参数都是一样的,点击曲线图表时,安卓手机显示浮动提示框很快,苹果手机显示浮动提示框很慢

from aachartkit.

AAChartModel avatar AAChartModel commented on June 9, 2024

有一个区别是:

  • iOS 的 Objective-C 版本的 AAChartKit 现在依赖的 Highcharts 版本是 9.0,
  • 而安卓的 Java 和 Kotlin 版本的 AAChartCore 依赖的 Highcharts 都是更高版本的 10.0,

不知道这个会不会有影响?! 更高版本的 Highcharts 性能优化的更好?! 不过我感觉可能性不太大.

不过, 如果你想排查一下这个问题, 你可以试试 Swift 版本的 AAChartKit-Swift, Swift 版本的依赖的 Highcharts 是 11.0 以上.

from aachartkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.