Unplanned
Last Updated: 02 Aug 2023 12:29 by ADMIN
Steve
Created on: 20 Jul 2023 12:43
Category: Chart
Type: Bug Report
1
Chart: Set Default Value for CartesianGridLineAnnotation

Hi Team,

Only on iOS, an app will crash if the CartesianGridLineAnnotation's Value is not set. On Windows and Android, this does not occur.

Example:

<telerik:RadCartesianChart x:Name="chart">
    <telerik:RadCartesianChart.Annotations>
        <!-- PROBLEM: Crashes on iOS due to not have a default value-->
        <telerik:CartesianGridLineAnnotation x:Name="marker" Axis="{x:Reference xAxis}"/>
        
        <!-- WORKAROUND: Set a default Value -->
        <telerik:CartesianGridLineAnnotation x:Name="marker" Axis="{x:Reference xAxis}" Value="0"/>
    </telerik:RadCartesianChart.Annotations>
</telerik:RadCartesianChart>

2 comments
ADMIN
Didi
Posted on: 02 Aug 2023 12:29

Hello Steve,

I tested the case without using null values and still exception occurs on my side. So here the null values do not provoke the exception.

Regards,
Didi
Progress Telerik

A brand new .NET MAUI course was just added to the Virtual Classroom. The training course is developed to help you get started with the Telerik UI for .NET MAUI components and features. It aims to put you in the shoes of an engineer who adds new features to an existing application. You can check it out at https://learn.telerik.com
Steve
Posted on: 31 Jul 2023 20:27
After more testing, it appears that the root of the issue may be the the RadCartesianChart on iOS does not handle null values within a series.