You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I received a few stacktraces related to a syncfusion_flutter_charts (28.1.33) code section in base.dart line 2877:
type 'Null' is not a subtype of type 'num'. Error thrown .
Steps to reproduce
Can't reproduce it myself as it seems to be a corner case.
Code sample
Code sample
Offset_offsetFromRawPoints(CartesianChartAnnotation annotation) {
finalRenderChartAxis? xAxis =_xAxis(annotation);
finalRenderChartAxis? yAxis =_yAxis(annotation);
if (xAxis !=null&& yAxis !=null) {
finalOffset position =rawValueToPixelPoint(
annotation.x, annotation.y, xAxis, yAxis, isTransposed); // This is the line where the error was thrownreturnOffset(
position.dx + _plotAreaOffset.dx, position.dy + _plotAreaOffset.dy);
}
returnOffset.zero;
}
We have tried to reproduce the reported issue using the shared stack trace and details. We would like to inform you that the _offsetFromRawPoints method is used to calculate the pixel value for placing an annotation on the chart. This method requires valid x and y values to function correctly. However, in this case, a null value was passed for either the x or y parameter, which is causing the issue.
To resolve this, please ensure that no null values are assigned to the x or y properties of any annotation.
Bug description
I received a few stacktraces related to a syncfusion_flutter_charts (28.1.33) code section in base.dart line 2877:
type 'Null' is not a subtype of type 'num'. Error thrown .
Steps to reproduce
Can't reproduce it myself as it seems to be a corner case.
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: