[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> |
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
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