Shared Tooltip Shows Wrong Values for Empty Categories in Grouped Column Chart
Check out this runnable sample for this question:
https://blazorplayground.syncfusion.com/hNVSNFNoFLRXWygV
• Only "Alpha" has a value for "08/05-AM", but when hovering over "Alpha", it additionally shows "Gamma" and "Beta" with values from its neighboring columns. This is unexpected.
• I expect the tooltip to show only "Alpha" and its value and not category names whose values are null.
How can I fix this so the tooltip only shows "Alpha" and its value, and not show values from other categories it doesn't even have values for?
Thanks.
Hi Ashish,
We have reviewed the scenario you reported, and it has been identified as the default behavior of the shared tooltip in our chart component. When the current range does not contain a data point for other series, the tooltip displays the nearest data point from those series.
To disable this feature, you can set the "ShowNearestPoint" property in the ChartTooltipSettings API to false, as shown in the code snippet below:
<ChartTooltipSettings Enable="true" Shared="true" Header="<b>${point.x}</b>" ShowNearestPoint="false" EnableHighlight="true" />
For the updated sample details, please refer to the link provided below: Syncfusion Blazor Playground: Write,Edit,Compile, Share Code
Feel free to contact us if you have any questions.
Regards,
Abubucker Sittiq R
Thank you Abubucker.
That solved the issue for me!
Just pasting the final code here that I can run in https://blazorplayground.syncfusion.com/ for future reference:
Most welcome. We are glad to hear that the solution worked for you! Thank you for sharing the final code snippet for future reference. It’s great to see your proactive approach, and this will surely be helpful for others facing similar scenarios.
If you have any further questions or need assistance with anything else, feel free to reach out. We're always here to help!
- 3 Replies
- 3 Participants
- Marked answer
-
AK Ashish Khanal
- Aug 5, 2025 11:13 PM UTC
- Aug 7, 2025 06:29 AM UTC