admin管理员组

文章数量:1391974

I am currently using fl_chart library to build this chart in flutter and have multiple lines joined together.

When I try to touch on the graph to see the tooltip, I sometimes get multiple touch points as shown by multiple vertical lines in the picture shared but I don't want that, I want only one point to have this vertical line.

LineChart(
...
lineTouchData: LineTouchData(
     touchSpotThreshold: 1,
     )
)

The issue with this approach is that it requires a very precise touch to show the tooltip which isn't that good for the UX.

Is this the correct way to do this? If not then how to fix this? Thanks for any help in advance

本文标签: flutterPrevent multiple touch points in flchart line chartStack Overflow