imaNNeo / imaNNeo/fl_chart

Tooltips near the edge of the screen should stay on screen

Open
#1,861 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

**Describe the bug**

Tooltips appearing near the edge of the screen shouldn't go off screen, they should display to the left of the cursor/touch.

**To Reproduce**

Make a full width bar chart, hover or tap the rightmost bar.

**Screenshots**

![Image](https://github.com/user-attachments/assets/df77e325-e0b6-4b7f-859d-7b5495565008)

**Versions**

```
Flutter 3.27.1
fl_chart: ^0.70.2
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with a full-width bar chart and hovering or tapping the rightmost bar. Trace the tooltip positioning used by the bar chart and ensure the tooltip remains on screen by displaying it to the left of the cursor or touch point when needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.