xiaolin3303 / wx-charts

微信小程序图表库,Charts for WeChat Mini Program
MIT License
4.92k stars 1.67k forks source link

怎么能让图表默认加载到x轴最右边呢 #347

Open aiqingcom opened 5 years ago

aiqingcom commented 5 years ago

一个股票的图表,x轴是时间轴,怎么默认让图表加载完后显示最新时间的数据呢

zhaopeiym commented 5 years ago

同问

fengziye commented 5 years ago

我改了源码实现了

yangbaobao813 commented 4 years ago

楼上的求原理

fengziye commented 4 years ago

我改了源码实现了

这边我有回复哟 https://github.com/xiaolin3303/wx-charts/issues/171

yangbaobao813 commented 4 years ago

十分感谢🙏大神膜拜

发自我的iPhone

在 2020年5月19日,08:44,FZY notifications@github.com 写道:

 我改了源码实现了

这边我有回复哟

171

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

yangbaobao813 commented 4 years ago

已经解决了,十分感谢!大神啊!

2020年11月3日 21:12,lamian111 notifications@github.com 写道:

moveRight:function(){ var e={}; e.touches=[{x:99999}]; lineChart.scrollStart(e); var a={}; a.touches=[{x:1}]; lineChart.scroll(a); }, 图表加载后延迟一点点执行这个就行了

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/xiaolin3303/wx-charts/issues/347#issuecomment-721107025, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUUJZH4LPLTZUY4BVDQNW3SN76SFANCNFSM4GXMGF2A.

wunan10122 commented 1 year ago

已经解决了,十分感谢!大神啊! 2020年11月3日 21:12,lamian111 @.***> 写道: moveRight:function(){ var e={}; e.touches=[{x:99999}]; lineChart.scrollStart(e); var a={}; a.touches=[{x:1}]; lineChart.scroll(a); }, 图表加载后延迟一点点执行这个就行了 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#347 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUUJZH4LPLTZUY4BVDQNW3SN76SFANCNFSM4GXMGF2A.

moveRight函数添加到哪里哇