- Home
- Forum
- Xamarin.Forms
- ChartZoomPanBehavior / DoubleTap
ChartZoomPanBehavior / DoubleTap
Thanks for using Syncfusion products.
We would like to let you know that you can achieve your requirement by inheriting ChartZoomPanBehavior class, and you can customize the gestures by override the required methods. We have also prepared a sample to customize the double tap gesture on ChartZoomPanBehavior,
Please find the sample from the following location.
Sample: http://www.syncfusion.com/downloads/support/forum/119017/CustomZooming923233549.zip
Please let us know if you require further assistance on this.
Thanks,
Yuvaraj P
Thanks for the update. Please let us know if you require further assistance on this.
Thanks,
Yuvaraj P
We request you to use the following code snippet to initialize custom zoom behavior in XAML page,
[XAML]
Declaring namespace
|
xmlns:chart="clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms" xmlns:local="clr-namespace:SimpleSample;assembly=SimpleSample" |
Adding custom behavior
|
<chart:SfChart.ChartBehaviors> <local:ChartDoubleTapBehavior EnablePanning = "true" EnableZooming = "true"/> </chart:SfChart.ChartBehaviors> |
Please let us know if you require further assistance.
Thanks,
Yuvaraj P
In the Chart zooming feature it is used to view the data points clearly when more number of data plotted on the Chart, for this Chart range only will get zoomed and the elements like data markers, data marker labels will not be zoomed and it remains the same size (not small), this is the design of Chart zooming feature.
Would you like to get the data marker labels also zoomed?
Please let us know if you need any further assistance on this.
Thanks,
Yuvaraj
I have another question, the chart zooming feature is just for some charts? I implemented it in a Stacking Columns Chart and when I did zoom, the middle label froze in the screen (attached file)
Thanks
Attachment: Screenshot_20150618151649_9ad75ab8.zip
Hi Alexander,
We can change the font size of the axis labels and data marker using the below code snippet.
C#
|
//Used to change the size of axis label font size sfChart.PrimaryAxis.LabelStyle.Font = Font.SystemFontOfSize(30);
//Used to change the size of data marker label font size columnSeries.DataMarker.LabelStyle.Font = Font.SystemFontOfSize(30); |
We have analyzed the reported issue with Stacking column data marker label position and it has been already fixed in the latest service pack release. So we request you to use the latest version of Syncfusion Xamarin Studio which is available from the following link.
Please let us know, if you need any further assistance.
Thanks,
Yuvaraj P
Thanks for the update.
Could you please confirm us whether your requirement is to zoom the data marker labels while performing the zooming on Chart?
Thanks,
Yuvaraj
Thanks for the update.
Please let us know if you need any further assistance on this.
Thanks,
Yuvaraj
- 14 Replies
- 3 Participants
-
MH Mark Hatton
- May 5, 2015 02:28 PM UTC
- Jun 23, 2015 05:06 AM UTC