xanderdeseyn / react-native-responsive-linechart

A customizable and responsive line or area chart for react-native
https://react-native-responsive-linechart.surge.sh
MIT License
202 stars 46 forks source link

onTooltipSelectEnd does not work for tapping #185

Open Rayne182 opened 5 months ago

Rayne182 commented 5 months ago

When I drag the tooltip I update a text field to reflect the data, and on select end I reset the data point to the latest value. But this is not possible when the user uses a single tap, in this case the tooltip persists and so does the tooltip data. I can make the tooltip disappear using hideTooltipAfter(), but this only hides the tooltip, but does not provide any functionality to reset the data point.

Is there any way to do this? Or to remove the contextual tapping altogether? I really only want users to drag on the chart and not tap.