100 Percent Stacked Bar Chart won't show tooltip if value is 0
Hi I found strange issue for not displaying tooltip if we found Y axis value is 0. In my example, I have Y1Series and Y2Series .. for Y1Series I have 0 value and Y2Series got 100 , so in tooltip it's shows Y2Series with tooltip information , but not Y1Series.
In example below Genotyped is Y1Series and Total is Y2Series , I always get tooltip for Total (Y2series) , but not Genotype(Y1Series). Note: Y1Series has >0 values , tooltip showing Y1Series data. It has issue with 0 value only
Note: tooltip showing for Y1Series(Genotyped) when we have value, in this case 16% for Cows does display value
I added Custom tooltip
Hi Priyansh,
Greetings from Syncfusion.
We suggest you to enable shared tooltip for chart to view the zero value in tooltip. By default, for normal tooltip while hovering over the column rectangle tooltip will be displayed, for zero value rectangle won’t be rendered so there is no option to display tooltip. When shared is enabled, closest point will be displayed in tooltip. We have prepared sample based on your requirement.
|
<SfChart> <ChartTooltipSettings Shared=true Enable="true"></ChartTooltipSettings> </SfChart> |
Sample : https://blazorplayground.syncfusion.com/rjrzNpBHzrUFUhSf
Kindly revert us if you have any concerns.
Regards,
Durga Gopalakrishnan.
Thanks for the solution, I used shared property in my project . Default tooltip shows 0%, but in custom tooltip 0% not displaying as well for series "Genotyped"
My custom tooltip code is as following : so on custom tooltip , we can't able to show 0%
Hi Priyansh,
We have considered your reported issue as a bug and have logged a defect report for it. This fix will be available in our patch release, which is scheduled to be rolled out on May 14th, 2024. We appreciate your patience until then. You can keep track of the bug using the feedback link below.
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
Regards,
Gopalakrishnan Veeraraghavan
Hi Priyansh,
We are glad to announce that our v25.2.4 patch release is rolled out; we have added the fix for reported issue. You can use the latest Syncfusion.Blazor.Charts NuGet package.
Root Cause:
In the tooltip template, if the YValue is set to 0, then the tooltip's YValue is set to an empty string, making it not visible in the tooltip.
Fix:
When YValue is set to 0, then specified the tooltip's YValue to 0 instead of an empty string, making it visible in the tooltip.
NuGet Package : https://www.nuget.org/packages/Syncfusion.Blazor.Charts/
Sample : https://blazorplayground.syncfusion.com/rjVfZSMfUCSTuKMC
Feedback Link : https://www.syncfusion.com/feedback/54951/in-a-100-percent-stacked-bar-chart-when-the-yvalue-is-set-to-0-the-yvalue-is-not
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Durga Gopalakrishnan.
- 5 Replies
- 3 Participants
-
PR Priyansh
- Apr 25, 2024 02:30 PM UTC
- May 14, 2024 11:36 AM UTC