Changes
Charts
,== Xamarin Chart Customizing {{Version/XamarinSince|4.8}} ==
Since Client Version 4.8 it is also supported for Xamarin to customize charts. As there is currently no standard Chart xaml, it needs to be customized in any existing xaml, e.g. in UBIKPropertyArea. Please consider using the proper BindingContext, namely the Value of the related Chart property. The IntToDateTimeIntervalConverter should be added to the ReourceDisctionary to use it in the DateTimeAxisTemplate.
Templates for the Numeric, Category, and DateTime Axis, as well as Template Selectors for the Primary and Secondary Axis, including bindings to the related Chart properties, need to be added to the Resources as follows:
<source lang = "xmlXML">xmlns:chart="clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms"<ResourceDictionary> <converters:IntToDateTimeIntervalConverter x:Key="IntToDateTimeInterval" /> ....</ResourceDictionary>
<Grid.Resources>
<!-- Templates for axis types -->
To display the Chart itself and to use the resources defined above, an extended Chart control is required with bindings to the Primary and Secondary Axis Template Selectors, Series, and Thresholds Chart properties.
<source lang = "xmlXML">xmlns:chart="clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms"xmlns:cpl="clr-namespace:UBIK.CPL;assembly=UBIK.CPL"
<cpl:SfChartExt
x:Name="Chart"
[[Category:Client|Charts]]
[[Category:WinX|Charts]]
[[Category:XAML|Charts]]
[[Category:Xamarin|Charts]]