Closed workingbuddy10 closed 9 months ago
I want the scroll/zoom-in/out feel like TradingView. If not exactly same, then at least close to ...
How to reduce the animation of am5themes_Animated in stock chart in GaplessDateAxis.
Try setting interpolationDuration:0
on you x and y axes.
@zeroin Did that. Though it improved a little bit.
But in this when I scroll or zoom-in/out sometimes the mouse / cursor gets stuck (IF we are not moving the mouse only scrolling via scroll). And if I just move the mouse it again gets fixed.
What if you set interpolationDuration:1
?
I have set it to 10.
@zeroin
See in the below video I was continuously scrolling but wasn't moving the mouse, when the cursor is exactly on the tooltip it doesn't scroll it just gets freeze. In this case If I move the mouse a little bit then it will work.
https://github.com/amcharts/amcharts5/assets/137867461/cebd11d7-2e93-40aa-8c28-ec74813c6174
@zeroin
For testing you can use the below codepen :
codepen : https://codepen.io/Ansh-m-the-reactor/pen/KKEEGaq?editors=1010
@zeroin
Removing keepTargetHover: true
fixes the problem, this setting doesn't do anything in your case anyway.
See in the below video I was continuously scrolling but wasn't moving the mouse, when the cursor is exactly on the tooltip it doesn't scroll it just gets freeze. In this case If I move the mouse a little bit then it will work. @zeroin
True @zeroin , as I don't even have keepTargetHover property in my chart! Then any suggestion which you like to provide, how to fix this?
By the way it is still lagging/freezing the scrolling when I exactly point between the candle open and the pointer of the tooltip.
PS: I have removed the property.
Tryout https://codepen.io/Ansh-m-the-reactor/pen/KKEEGaq?editors=1010
Exactly at this point :
@zeroin
I think adding forceInactive:true
for the series tooltip should solve the problem.
Perfect @zeroin forceInactive:true
worked for me!!!
Thank you!
Ideal case : I want the zoom-in/scroll looks like this smooth in my stock Charts.
https://github.com/amcharts/amcharts5/assets/137867461/834cd04f-6d5d-4a24-beed-695a8bd4a151
When I use animated theme and use on-demand loading the candles shakes like this, rest other animations are fine :
https://github.com/amcharts/amcharts5/assets/137867461/a5bc76e9-4cac-41d0-8d5f-c86cefd0350e
But when I don't use animated theme, the zoom-in via mouse scroll is way too fast but when I zoom-out it feels lag :
In the middle of video there was a pause even though I was scrolling.https://github.com/amcharts/amcharts5/assets/137867461/7643e972-1767-4b4c-9cec-da5b3f958524
My Theme currently looks like :