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

iOS 折线图滑动图表,松开手指滑杆会回到初始位置。偶现 #1411

Open DoubleYao0112 opened 1 year ago

DoubleYao0112 commented 1 year ago

https://user-images.githubusercontent.com/18136874/195800393-ea613428-3fe9-4629-aaa8-a9aeedcd3561.mp4

从A点滑动到B点,松开手指,滑杆会自动弹回到A点。

AAChartModel commented 1 year ago

能直接在 AAChartKit 的 demo 中复现出来吗?

DoubleYao0112 commented 1 year ago

能复现,建议使用真机测试。

DoubleYao0112 commented 1 year ago

能直接在 AAChartKit 的 demo 中复现出来吗?

https://user-images.githubusercontent.com/18136874/195804055-534988b9-2cd8-458c-864a-ccd1e3cea763.mp4

DoubleYao0112 commented 1 year ago

https://user-images.githubusercontent.com/18136874/196071499-789872bb-de19-4715-9aa3-8e8525dd7ffc.mp4

急急急,过几天就要上线了,另找框架时间来不及了,大神能不能赶紧看下这个问题。体验确实不太好,这个问题还是挺容易复现的。

AAChartModel commented 1 year ago

我也确实稳定复现了这个问题, 估计是 Highcharts 的 bug, 我已经给 Highcharts 官方提了 issue . 鉴于Highcharts 以往解决 bug 的效率来看, 不太可能在几天之内解决此问题.

AAChartModel commented 1 year ago

在 Highcharts 官未解决此问题的前提下, 我能想到的解决此问题的办法, 大概就是获取用户的手指点击的位置, 自绘一条直线和 UIView 来替代 Highcharts 的准星线和浮动提示框了, 参考:

AAChartModel commented 1 year ago

在 Highcharts 官方为解决此问题的前提下, 我能想到的解决此问题的办法, 大概就是获取用户的手指点击的位置, 自绘一条直线和 UIView 来替代 Highcharts 的准星线和浮动提示框了, 参考:

此方法的使用示例代码, 参考此次提交的内容:

此提交内容, 在 AAChartKit-Swift-Pro 的 demo 中可以找到. demo 链接如下:

DoubleYao0112 commented 1 year ago

在 Highcharts 官未解决此问题的前提下, 我能想到的解决此问题的办法, 大概就是获取用户的手指点击的位置, 自绘一条直线和 UIView 来替代 Highcharts 的准星线和浮动提示框了, 参考:

我感觉这个问题是不是在AAHighcharts JS文件中,mouseout 交互事件中存在一些逻辑处理又回到touchstart的位置

chenhongxin2015 commented 1 year ago

大佬们,这个问题是不是还没有解决呀

DoubleYao0112 commented 1 year ago

换了个框架,用Charts实现的

------------------ 原始邮件 ------------------ 发件人: "AAChartModel/AAChartKit" @.>; 发送时间: 2023年3月21日(星期二) 下午3:30 @.>; @.**@.>; 主题: Re: [AAChartModel/AAChartKit] iOS 折线图滑动图表,松开手指滑杆会回到初始位置。偶现 (Issue #1411)

大佬们,这个问题是不是还没有解决呀

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>