I'm trying to display a percentage value in the tooltip of a doughnut chart.
This is my Tooltip Template that i got from looking at samples and chatgpt queries.
.TooltipTemplate(@"<div> <span>${item.Label}: ${Math.round((item.Value / series.sum()) * 100)})</span> </div>")
It displays the label and values properly, but i need it to display a percentage value, the above just renders in plain text in the browser.
Hello Andrew,
Thank you for posting to our community!
I have been looking into your question and noticed that the same question is asked in this forum thread. Please note that according to our support policy, we handle a single forum thread per query.
Considering this, I suggest referring to the abovementioned forum thread, where I have already provided an answer and will continue assisting you there.
Thank you for using Infragistics components.
Sincerely, Riva Ivanova Software Developer