Skip to content

Starting from version 28.2.5+1 the tooltip stopped working #2296

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

Closed
VictorJava opened this issue Feb 28, 2025 · 2 comments
Closed

Starting from version 28.2.5+1 the tooltip stopped working #2296

VictorJava opened this issue Feb 28, 2025 · 2 comments
Labels
charts Charts component waiting for customer response Cannot make further progress until the customer responds.

Comments

@VictorJava
Copy link

Bug description

Hello. Starting from version 28.2.5+1, the tooltip stopped working. I’ve recorded a video showing the tooltip working in version 28.2.5 and not working in version 28.2.7. I’ve also created a test project for you.

Steps to reproduce

  1. Compile the project that I attached below
  2. Navigate to the pubspec.yaml
  3. Compile app with syncfusion_flutter_charts: 28.2.5
  4. Be sure that the tooltip appears
  5. Compile with syncfusion_flutter_charts: 28.2.5+1 or syncfusion_flutter_charts: 28.2.7
  6. Check that the tooltip doesn`t appear

Code sample

syncfusion_charts_example_without_build_and_dart_folder.zip

Code sample
[Add your code here]

Screenshots or Video

ScreenRecording2025-02-28at11.30.04-ezgif.com-resize-video.mov
ScreenRecording2025-02-28at11.30.04-ezgif.com-resize-video.mov
Screenshots / Video demonstration

[Upload media here]

Stack Traces

Stack Traces
no stacktrace

On which target platforms have you observed this bug?

Android

Flutter Doctor output

Doctor output
[!] Flutter (Channel stable, 3.27.4, on macOS 15.3 24D60 darwin-arm64, locale en-UA)
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.6.0/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/victorl/development/flutter. Consider
      adding /Users/victorl/development/flutter/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] IntelliJ IDEA Community Edition (version 2024.3.1)
[✓] VS Code (version 1.93.1)
[✓] Connected device (5 available)
[✓] Network resources

! Doctor found issues in 1 category.
@VijayakumarMariappan VijayakumarMariappan added charts Charts component open Open labels Feb 28, 2025
@PreethikaSelvam
Copy link
Contributor

Hi @VictorJava,

We would like to inform you that starting from version 28.2.5+1, the tooltip now appears instantly without any delay when interacting with the chart. To achieve this, tap gestures have been handled separately to avoid conflicts between single tap and double tap interactions. Due to this improvement, the tooltip hides immediately when setState is triggered inside onPointTap. We have shared the changelog below for your reference.

Changelog: https://pub.dev/packages/syncfusion_flutter_charts/versions/28.2.5+1/changelog

In your case, calling the setState inside onPointTap, which triggers a rebuild of the chart, which resets the tooltip behavior and prevents it from displaying. To resolve this, we suggest using showByIndex method within the addPostFrameCallback to show the tooltip after the rebuild is completed. We have shared modified code snippet, sample and UG documentation for your reference.

Code Snippet:

onPointTap: (ChartPointDetails details) {
  setState(() {
    _selectedIndex = details.pointIndex!;
    _isTooltipVisible = true;
  });

  WidgetsBinding.instance.addPostFrameCallback((_) {
    _tooltip.showByIndex(0, details.pointIndex!);
  });
},

Output:

Image

UG Links:
https://help.syncfusion.com/flutter/cartesian-charts/callbacks#onpointtap
https://help.syncfusion.com/flutter/cartesian-charts/methods#showbyindex-method-in-tooltipbehavior

If you still face the issue, we kindly request you to try to replicate the reported issue in the below attached test sample and revert us so that it will help us assist you in a better way.

gh_2296 (2).zip

Regards,
Preethika Selvam.

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer response Cannot make further progress until the customer responds. and removed open Open labels Apr 8, 2025
@LavanyaGowtham2021
Copy link
Collaborator

Please reopen this ticket with requested details, if you need further assistance with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
charts Charts component waiting for customer response Cannot make further progress until the customer responds.
Projects
None yet
Development

No branches or pull requests

4 participants