We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change Chart type at runtime

Thread ID:





124209 May 24,2016 07:16 PM UTC May 27,2016 09:02 AM UTC Xamarin.Forms 3
Tags: SfChart
Asked On May 24, 2016 07:16 PM UTC

Hi i have successfully using chart what i am facing challenge is to change to chart type at run time my code is given below please guide me what i have to do to change chart type.
<chart:SfChart BackgroundColor="White" Grid.Row="1" x:Name="Chart" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<chart:ChartZoomPanBehavior EnablePanning="true" EnableZooming="false" />
<chart:ChartTrackballBehavior ShowLabel="True" ShowLine="True" />
<chart:CategoryAxis LabelPlacement="BetweenTicks">
<chart:ChartAxisLabelStyle TextColor="#0B4940">
<Font FontSize="9" FontAttributes="Bold" />
<chart:NumericalAxis Interval="2" Maximum="110" Minimum="90">
<chart:ChartAxisTickStyle TickSize="7" StrokeColor="#0B4940" StrokeWidth="3" />
<chart:ChartAxisTickStyle TickSize="5" StrokeColor="Green" StrokeWidth="2" />
<chart:ChartAxisTitle Text="Temperature °F" />
<chart:SplineSeries EnableDataPointSelection="true" Color="#0B4940" x:Name="Charts" XBindingPath="XValue" YBindingPath="YValue">
<chart:ChartDataMarker ShowLabel="False" ShowMarker="True" MarkerType="Hexagon" MarkerWidth="5" MarkerHeight="5" MarkerColor="Red" MarkerBorderColor="Red" MarkerBorderWidth="2" />

Gobi M [Syncfusion]
Replied On May 25, 2016 12:18 PM UTC

Hi Atif, 
Thanks for using Syncfusion products. 
We are able achieve your requirement for change chart type in runtime. We have prepared a sample for this and it can be downloaded in the below link. 
Please let us know if you need any further assistance.  
Gobi M 

Replied On May 26, 2016 03:52 PM UTC

Thanks a lot.

Gobi M [Syncfusion]
Replied On May 27, 2016 09:02 AM UTC

Hi Atif, 
Thanks for the update. 
Please let us know if you have any other queries. 
Gobi M 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon