In example replace .UseSyncfusionToolkit() with .ConfigureSyncfusionToolkit() in mauiprogram.cs
Closed this issue · 2 comments
In the example, use .ConfigureSyncfusionToolkit() in mauiprogram.cs instead of .UseSyncfusionToolkit().
Update the MainPage.xaml with:
<chart:SfCartesianChart.Series> <chart:SplineSeries Label="High" EnableTooltip="True" EnableAnimation="True" ItemsSource="{Binding Data}" XBindingPath="Name" YBindingPath="Height" StrokeWidth="1" ShowMarkers="True" LegendIcon="SeriesType" > <chart:SplineSeries.MarkerSettings> <chart:ChartMarkerSettings Width="8" Height="8" StrokeWidth="1"/> </chart:SplineSeries.MarkerSettings> </chart:SplineSeries> </chart:SfCartesianChart.Series>
In Xaml, the namespace that worked for me was:
xmlns:chart="clr-namespace:Syncfusion.Maui.Toolkit.Charts;assembly=Syncfusion.Maui.Toolkit"
Then the example will display the intended data. How do I get the code displayed above to appear properly as seperated lines?
Hi @davefxy,
Thanks for the code suggestions. We have now updated the complete code example to the readme file