Knowledge Base Article

Disable Percentages In Tooltip For Pie And Column Charts

The following solution is relevant to both Pi and column charts. Illustrations were supplied for Pi charts only for simplicity. 
If you'd like to remove the percentage value in the tooltip hover menu as illustrated below:
For Pie charts:
  • Edit widget
  • Edit script
  • Insert the following into the script body:
widget.on("beforedatapointtooltip", function(w, args){
 args.template = args.template.replace("/ {{model.percent}}%", "");
});
  • Save script.
  • Refresh dashboard (F5)
For column charts:
  • Edit widget
  • Edit script
  • Insert the following into the script body:
widget.on("beforedatapointtooltip", function(w, args){
 args.template = args.template.replace("/ {{item.percentage}}", "");
});
  • Save script.
  • Refresh dashboard (F5)
The dashboard before:
The dashboard after:
Updated 03-02-2023

1 Comment

  • TJT's avatar
    TJT
    Data Storage

    Can we do same to hide just one item in a tool tip - specifically the color by field in the scatter map.