Percentage value in chart tooltip??

I have a stacked bar chart with numeric totals for the data, but I'd also like to add percentages to the tooltip if possible.  Any suggestions on how to do so?  Found similar question with pie charts, but jquery here: https://www.syncfusion.com/forums/126327/tooltips-and-percentage-values

1 Reply

SM Srihari Muthukaruppan Syncfusion Team March 18, 2020 10:44 AM UTC

Hi Katie, 

Greetings from Syncfusion 

We have analyzed your query. From that we would like to let you know that we can achieve your requirement using Format property in tooltip of the chart. We have also prepared a sample for your reference. Please find the below sample, code snippet and screenshot. 


Code Snippet: 
<EjsChart > 
  // add your additional code here 
  <ChartTooltipSettings Enable="true" Format="<b>${point.x} : ${point.y}%</b>"></ChartTooltipSettings> 
  // add your additional code here 
</EjsChart> 
 
Screenshot: 
 
 
 
Let us know if you have any concerns. 

Regards, 
Srihari M 


Loader.
Up arrow icon