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. Image for the cookie policy date

errors that don't stop the program from running wpf

I have a line chart and I can run the program fine but I have these errors that appear yet I can still run my program. I know this is probably not what I should be worried about since it works fine, but can someone please explain to em why they appear in the first place and if possible how to make them go away?

Error 1 A value of type 'LineSeries' cannot be added to a collection or dictionary of type 'ChartSeriesCollection'.
Error 2 The property 'ItemsSource' was not found in type 'LineSeries'.
Error 3 The property 'XBindingPath' was not found in type 'LineSeries'.

        <Grid.DataContext>
            <local:ViewModel/>
        </Grid.DataContext>

        <syncfusion:SfChart Margin="10" Panel.ZIndex="5">

            <syncfusion:SfChart.PrimaryAxis>
                <syncfusion:CategoryAxis />
            </syncfusion:SfChart.PrimaryAxis>

            <syncfusion:SfChart.SecondaryAxis>
                <syncfusion:NumericalAxis Maximum="80"/>
            </syncfusion:SfChart.SecondaryAxis>

            <syncfusion:SfChart.Behaviors>
                <syncfusion:ChartCrossHairBehavior/>
                <syncfusion:ChartTrackBallBehavior/>
            </syncfusion:SfChart.Behaviors>

            <syncfusion:LineSeries x:Name="series" ItemsSource="{Binding DataPoint}" 
                                   XBindingPath="XData"
                                   YBindingPath="YData">
                <syncfusion:LineSeries.YAxis>
                    <syncfusion:NumericalAxis/>
                </syncfusion:LineSeries.YAxis>
            </syncfusion:LineSeries>
        </syncfusion:SfChart>

Any help would be amazing

Thanks

Ryan



1 Reply

SA Santhiya Arulsamy Syncfusion Team November 6, 2015 12:21 PM UTC

Hi Ryan,

Thanks for your update.

We are unable to reproduce the reported problem at our end. Please change the sample attachment to reproduce the problem and update us.

Sample: YAxisLabel_145753

Regards,

Santhiya A.

Loader.
Live Chat Icon For mobile
Up arrow icon