imaNNeo / imaNNeo/fl_chart

Touch line goes through the highest point

Open
#1,945 0 comments 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**
The touchline of the line chart, when having 2+ lines goes through the highest points overlaying it, when
`getTouchLineEnd: (data, index) => double.infinity`.
I think it should be the same as for the lower point, when it just going through it, but not overlaying (see screenshot)

**To Reproduce**
Provide us a completely reproducible code (contains the main function) in a `main.dart` file, it helps us to find the bug immediately.

**Screenshots**

Image

**Versions**
- which version of the Flutter are you using?
Flutter 3.32.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b25305a883 (3 weeks ago) • 2025-05-29 10:40:06 -0700
Engine • revision 1425e5e9ec (3 weeks ago) • 2025-05-28 14:26:27 -0700
Tools • Dart 3.8.1 • DevTools 2.45.1

- which version of the FlChart are you using?
version: "1.0.0"

Contributor guide

Open the contributing guide

Research direction

Create the requested reproducible main.dart example with a line chart containing 2+ lines and getTouchLineEnd returning double.infinity. Run it with Flutter 3.32.1 and fl_chart 1.0.0, then compare the touchline at the highest points with the lower-point behavior shown in the screenshot; done means the line no longer overlays the highest points.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.