Skip to content
Discussion options

You must be logged in to vote

Hi @rokmeglic71

Based on your description, it seems the chart is rendering but the LineSeries is not visible, which usually indicates a data binding issue. To resolve this, please ensure the BindingContext is correctly set to your Chart in XAML.

Here’s how you can define it:

<ContentPage 
             ....
             xmlns:chart="clr-namespace:Syncfusion.Maui.Toolkit.Charts;assembly=Syncfusion.Maui.Toolkit"
             xmlns:viewModel="clr-namespace:YourAppNamespace.ViewModels"
             x:Class="YourAppNamespace.MainPage">
 
 <chart:SfCartesianChart VerticalOptions="Start" x:DataType="viewmodels:MainViewModel" BackgroundColor="White">
        
            <!-- Set the BindingContex…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rokmeglic71
Comment options

Answer selected by rokmeglic71
Comment options

You must be logged in to vote
1 reply
@rokmeglic71
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants