Hi,
I’m wondering is there a way to temporarily disable zoompan modifier while I re-rendering the chart. My re-rendering on the heatmap might take a second, I hope the interaction can be disabled during that process.
Thanks.
- Gang Xu asked 4 years ago
- You must login to post comments
Hi there,
Have you tried to set IsEnabled property on modifier:
zoomPanModifier.setIsEnabled(false);
Best regards,
Yura
- Yura Khariton answered 4 years ago
-
Thanks for that. That’s easy. but may I ask how to get zoomPanModifier explicitly from SciChartSurface? I tried to figure it out with no luck. And is there a feature that can make the chart gray out or has a spinner rotating while rendering?
-
To get access to ZoomPanModifier later, you can save it into variable after creation and pass it into builder ( similar to what we do with RolloverModifier here – https://www.scichart.com/example/android-chart-example-using-rollovermodifier-tooltips/ ). Also you can iterate over ChildModifiers of ModifierGroup ( if you added ZoomPanModifier into ModifierGroup ) – https://www.scichart.com/documentation/android/current/webframe.html#SciChart.Charting~com.scichart.charting.modifiers.ModifierGroup~getChildModifiers.html or if you directly added into ChartModifier collection of chart then iterate over this collection ( https://www.scichart.com/documentation/android/current/webframe.html#SciChart.Charting~com.scichart.charting.visuals.ISciChartSurface~getChartModifiers.html ), then during iteration check the type of child modifier and cast if it’s ZoomPanModifier. I would suggest first approch.
-
We don’t have spinner or this gray area, because you can easily add it on top of chart on your own ( by placing spinner/view with gray fill and chart in same FrameLayout )
-
Thanks Yura. It’s informative. The variable way works.
- You must login to post comments
Please login first to submit.