Functionality of SfChart control changed

Hi, I have a SfChart control that was working fine in PCL with the older dlls. Now I upgraded the app to use the latest syncfusion nuget package for the SfChart and noticed that the bar chart does not scroll horizontally what using gesture swipe from right to left so I can see the rest of the data (which it did before). Only when I pinch with two fingers to zoom then it allows scrolling.  Is there a way to fix this?
Thanks

3 Replies

MK Muneesh Kumar G Syncfusion Team June 11, 2018 09:20 AM UTC

Hi Ethan, 
 
Thanks for using Syncfusion products.   
  
We have analyzed your query and we suspect that the problem is related to unable to pan the SfChart while ZoomPosition is 0 in Xamarin.Forms iOS platform. We can resolve this problem by extending ChartZoomPanBehaviorHelper in custom renderer. Please download the sample from the following location.  
   
   
Note: Please refer CustomRenderer.cs file iOS project for custom render implementation.   
   
Please let us know if you are still facing any issue in this. 
   
Thanks,  
Muneesh Kumar G  
 



ET ethan June 12, 2018 04:09 AM UTC

Hi Muneesh, thank you this solved the scrolling.  The other issue i have is the label only appears on every other bar. I also see that on the sample you provided, it only shows 2, 4, 6.. instead of 1,2,3,4,5,6..is there a way to force it to show all the labels?
Thank you,
Ethan


DV Divya Venkatesan Syncfusion Team June 13, 2018 05:00 AM UTC

Hi Ethan, 
  
Your requirement to show all the axis labels can be achieved by setting Interval property of axis as shown in the below code snippets. 
  
Code snippet[Xaml]: 
<chart:SfChart.PrimaryAxis> 
    <chart:NumericalAxis Interval="1"/> 
</chart:SfChart.PrimaryAxis> 
  
Code snippet[C#]: 
numericalAxis.Interval = 1; 
 
You can refer the following user guide link to know more about interval 
 
Please let us know if you need any further assistance. 
  
Regards, 
Divya Venkatesan 
 


Loader.
Up arrow icon