2X faster development
The ultimate WPF UI toolkit to boost your development speed.
WPF Chart (SfChart) allows you to zoom the chart area by using ZoomFactor and ZoomPosition properties. The ZoomFactor property defines the zooming level and the ZoomPosition property defines the zooming (scrolling) position for chart. Both values should fall between 0 and 1. For instance, when ZoomFactor is 0.5 and ZoomPosition is also set to 0.5 for the chart with 10 data points, it shows last 5 data points in chart. Here, ZoomFactor decides no of points (5), and ZoomPosition decides range of values to display (from 6 to 10). C# private void MyChart() { SfChart chart=new SfChart(); chart.PrimaryAxis=new CategoryAxis(); chart.PrimaryAxis.ZoomPosition = 0.7; chart.PrimaryAxis.ZoomFactor = 0.3; ChartBehavior behavior= new ChartZoomPanBehavior(); }
|
2X faster development
The ultimate WPF UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.
In Android I was using ZoomFactor and Zoom position as value bound to my viewmodel and all seems to work.
In iOS seems that I need to set them via code behind, otherwise they don't work as expected.
Can you check it?
Thank you