fl_chart icon indicating copy to clipboard operation
fl_chart copied to clipboard

Continuous tooltip for LineCharts with not enough data

Open Michal-MK opened this issue 1 year ago • 1 comments

Don't make a duplicate issue. I searched but who knows if the query was good enough.... Also the shown examples of line charts do not present the behavior I am looking for.

Is your feature request related to a problem? Please describe. I have a line chart where the x axis is a datetime axis, I have data ranging from 5 days to n years. The granularity of the graph is days. Now for years when I hover over the graph I get a continuous tooltip as there is enough data. But for the 5 days range I have to swipe my finger over the graph to find the place where the tooltip will be shown.

Describe the solution you'd like Since it is a line chart it already has the information on which "y" level to render the line. So it should be fairly simple to expose that value to the tooltip builder.

Describe alternatives you've considered None, but I will manually "generate" the data between the points using linear interpolation for now... but I feel that could be handled by the library,

Additional context image image

The first image has enough data so the tooltip is always visible (the movement is stuttering but that is not an issue). The second picture has only limited number of data and the tooltip is visible only around the dark bars (which I included for presentation purposes, in reality they would not be there and it would not be clear where the point of interest is).

Michal-MK avatar May 30 '23 20:05 Michal-MK

+1

i am also looking for continuous tooltip between dates, when the there is no data inbetween. Is this going to be in the package?

HatsjoeHatsjoe avatar Mar 19 '24 21:03 HatsjoeHatsjoe