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
版权声明:本文标题:flutter - Prevent multiple touch points in fl_chart line chart? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744716312a2621424.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论