-
Notifications
You must be signed in to change notification settings - Fork 773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when hiding a series #9
Comments
Hi MsXam, We have analyzed this and tried to replicate the reported issue at our end. But unfortunately, we couldn’t replicate this. Series visibility is toggled properly while clicking the legend, without any exception. We have attached the sample which we used for testing in the below link for your reference. Here we have specified 3 series (line, spline and column). Attached the screen recorded video in the below link for your reference. As we didn’t know your exact scenario, we couldn’t replicate this. We request you to revert your sample code or revert the sample which we have attached, by modifying your scenario in it. This will be helpful for us to reproduce the issue and to resolve it ASAP. Also please ensure whether you were using the latest version(1.0.0-beta.3) of our package in your example and use latest Flutter SDK. Thanks, |
The exception doesnt cause the app to fail unless you enable a breakpoint in VSCODE set to ALL EXCEPTIONS or UNCAUGHT EXCEPTIONS - you will then see the exception stack trace in your console. |
Hi @MsXam , Sorry for the inconvenience. Yes, we can replicate the issue on toggle the column series visibility and the issue is not replicated with spline type series. So, we have logged a bug report in our feedback portal. You can track the status of the bug from the below link. We will fix the bug and include it in our upcoming release. We appreciate your patience until then. Please let us know if you have any concerns. Thanks, |
Hi @MsXam , Thanks for being patience. We have fixed the reported issue. The exception will not be thrown on hiding the series. To resolve the issue, kindly upgrade your package and you can find the updated packages from the below link. https://pub.dev/packages/syncfusion_flutter_charts Kindly revert us if you have any concerns. Thanks, |
Hi @MsXam , We are closing this issue now, as it is resolved. Thanks, |
When you tap on a legend to hide a series, then tap the graph - you get an exception :
The following NoSuchMethodError was thrown while dispatching a pointer event:
The method 'contains' was called on null.
Receiver: null
Tried calling: contains(Instance of 'Offset')
When the exception was thrown, this was the stack
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:50:5)
#1 _ContainerArea._bindInteractionWidgets._findSeries
package:syncfusion_flutter_charts/…/base/chart_base.dart:1438
#2 _ContainerArea._bindInteractionWidgets.
package:syncfusion_flutter_charts/…/base/chart_base.dart:1532
#3 RenderPointerListener.handleEvent
package:flutter/…/rendering/proxy_box.dart:2683
#4 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart:198
...
Event: PointerDownEvent#4e7ef(position: Offset(238.7, 473.0), timeStamp: 89:38:41.622606, pointer: 96, kind: touch, device: 140607296318576, buttons: 1, down: true, pressure: 0.0, pressureMin: 0.0, pressureMax: 6.7, radiusMajor: 6.7, radiusMin: 5.0, radiusMax: 8.3, orientation: -1.6)
position: Offset(238.7, 473.0)
Target: RenderPointerListener#992e2 relayoutBoundary=up1
parentData: not positioned; offset=Offset(0.0, 0.0) (can use size)
constraints: BoxConstraints(0.0<=w<=307.0, 0.0<=h<=450.0)
size: Size(307.0, 450.0)
behavior: deferToChild
listeners: down, move, up
The text was updated successfully, but these errors were encountered: