imaNNeo / fl_chart

FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
https://flchart.dev
MIT License
6.88k stars 1.78k forks source link

LineChart TooltipLine does not display the correct color #822

Closed jlnrrg closed 2 years ago

jlnrrg commented 3 years ago

Describe the bug The Tooltip Line of the LineChart is by default colored as the upper positioned line, this works very unreliably. See image for a visual impression:

Screenshot from 2021-11-22 17-29-05

The bottom brown vertical line should be red from my understanding.

Versions

Flutter version ```bash Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 18116933e7 (5 weeks ago) • 2021-10-15 10:46:35 -0700 Engine • revision d3ea636dc5 Tools • Dart 2.14.4 ```

Fl Chart Version:

  fl_chart: ^0.40.2
imaNNeo commented 2 years ago

The indicator lines are drawn by the order of the lines. In your example, brown is the frontest line and that's why you see brown.

jlnrrg commented 2 years ago

An understandable programming pov, but from the design perspective this might need improvement. I understand if this is too much effort to do, so I'd argue, to handle it like syncfusions chart package and to be able to set the line color as one color (if that is not already possible)

imaNNeo commented 2 years ago

I understand it is not good from design perspective. There is an opened issue already. You can follow-up this issue here: #198