imaNNeo / imaNNeo/fl_chart

[Question] [LineChart] Its possible to know the barIndex in getTouchedSpotIndicator

Open
#466 6 comments 0 reactions 0 assignees View on GitHub
enhancement Line Chart
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

Hi again @imaNNeoFighT,

I want to customize the point when I touch, for each of the lines.
For line 0 I want the blue point, for line 1 I want the green point.

**Is it possible to access the line index ??**

![image](https://user-images.githubusercontent.com/33434500/95492651-507ace00-0993-11eb-9eee-a110d98770d6.png)

I tried it this way but it gives me the error I mentioned in the code.

![image](https://user-images.githubusercontent.com/33434500/95491681-da299c00-0991-11eb-8e86-c7c350093818.png)

### Congratulations on the library once again.

**Versions**
**Flutter version:** 1.22.0
**FlChart version:** 0.12.0

Contributor guide

Open the contributing guide

Research direction

Start with the LineChart getTouchedSpotIndicator API described in the issue and reproduce the reported error using Flutter 1.22.0 and fl_chart 0.12.0. The payload names no files or tests; done means establishing whether line-specific colors are supported and documenting the answer or defining a verifiable API change.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.