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:SfChart.ChartBehaviors>
<chart:ChartZoomPanBehavior EnablePanning="true" EnableZooming="false" />
<chart:ChartTrackballBehavior ShowLabel="True" ShowLine="True" />
</chart:SfChart.ChartBehaviors>
<chart:SfChart.PrimaryAxis>
<chart:CategoryAxis LabelPlacement="BetweenTicks">
<chart:CategoryAxis.LabelStyle>
<chart:ChartAxisLabelStyle TextColor="#0B4940">
<chart:ChartAxisLabelStyle.Font>
<Font FontSize="9" FontAttributes="Bold" />
</chart:ChartAxisLabelStyle.Font>
</chart:ChartAxisLabelStyle>
</chart:CategoryAxis.LabelStyle>
</chart:CategoryAxis>
</chart:SfChart.PrimaryAxis>
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis Interval="2" Maximum="110" Minimum="90">
<chart:NumericalAxis.MajorTickStyle>
<chart:ChartAxisTickStyle TickSize="7" StrokeColor="#0B4940" StrokeWidth="3" />
</chart:NumericalAxis.MajorTickStyle>
<chart:NumericalAxis.MinorTickStyle>
<chart:ChartAxisTickStyle TickSize="5" StrokeColor="Green" StrokeWidth="2" />
</chart:NumericalAxis.MinorTickStyle>
<chart:NumericalAxis.Title>
<chart:ChartAxisTitle Text="Temperature °F" />
</chart:NumericalAxis.Title>
</chart:NumericalAxis>
</chart:SfChart.SecondaryAxis>
<chart:SfChart.Series>
<chart:SplineSeries EnableDataPointSelection="true" Color="#0B4940" x:Name="Charts" XBindingPath="XValue" YBindingPath="YValue">
<chart:SplineSeries.DataMarker>
<chart:ChartDataMarker ShowLabel="False" ShowMarker="True" MarkerType="Hexagon" MarkerWidth="5" MarkerHeight="5" MarkerColor="Red" MarkerBorderColor="Red" MarkerBorderWidth="2" />
</chart:SplineSeries.DataMarker>
</chart:SplineSeries>
</chart:SfChart.Series>
</chart:SfChart>