We are working on line charts in Xamarin forms. We have a requirement to zoom in only one direction at one time. Once the user is done with zooming in one direction (say horizontal) and he reaches that place through scrolling, he should be able to zoom in another direction(vertical). Can you please assist this for the same
- george asked 5 years ago
- You must login to post comments
Hi
I was able to run the line chart in android and ios natively. But I want to run it in xamarin forms. Can you suggest me a way to run this in xamarin forms
- george answered 5 years ago
-
Unfortunately we don’t provide Xamarin.Forms specific wrappers for now but you can use Xamarin.iOS/Android wrappers and include our charts as native views ( https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/native-views/ ) into Xamarin.Forms project.
- You must login to post comments
Hi George,
You can switch zoom direction by setting Direction property for PinchZoomModifier:
pinchZoomModifier.setDirection(Direction2D.XDirection);
or
pinchZoomModifier.setDirection(Direction2D.YDirection);
The same approach should work for ZoomPanModifier:
zoomPanModifier.setDirection(Direction2D.XDirection);
or
zoomPanModifier.setDirection(Direction2D.YDirection);
Is this suitable for your needs?
Best regards,
Yura
- Yura Khariton answered 5 years ago
- You must login to post comments
Please login first to submit.