✨ Feature Request: Separate Tooltip for Line Chart (Dot Press Interaction) #1185
|
Hello 👋, First of all, thank you for this amazing library. I’m currently using a BarChart with an overlaid line, where: Bars represent Monthly Profit (%) Line represents Total Balance ($) I’m scaling the data so both can appear together nicely. Bar press tooltip works great (showing: Profit: x%, Balance: $xxxxx.xx). 📌 Issue / Limitation Right now, the library only supports tooltips on bar press. ✨ What I need When a user taps on any visible dot on the line chart, I want to show a separate tooltip for the line value, such as: Just like how bar tooltips are supported, a similar interaction for line points would create a much better UX, especially in dual-axis charts. 📷 Reference (Screenshots) 🙏 Request Could you please consider adding support for: ✔ onPress / pointer interaction for line dots This would greatly improve usability when working with combined charts (bar + line). Thank you for your hard work and for maintaining this great library! |
Replies: 4 comments 9 replies
|
Hi @ronak-gami Thanks for requesting this feature. This has now available from versions |
|
@Abhinandan-Kushwaha Thank you Bro... can you please create docs for this or update to your site. "https://gifted-charts.web.app/" @Abhinandan-Kushwaha |
|
Hi @ronak-gami I have released a new version- |
|
ok for this issue i'll find something. |



Hi @ronak-gami Thanks for requesting this feature. This has now available from versions
1.4.69onwards using the propertiesdataPointLabelComponentandshowDataPointLabelOnFocusinside thelineConfigprop.dataPointLabelComponent is a callback function with 2 params- item and index.
See https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/releases/tag/v1.4.69