cancel
Showing results for 
Search instead for 
Did you mean: 

Stacked bar charts - Values and proportions

subramanian_cv
7 - Data Storage
7 - Data Storage

Hi there!

How do I get rid of / % (ie - % of total) when we hover on the widget. While I already show the value in a absolute % representation whereas the % of total against a % value do not make sense in my use case. 

1 ACCEPTED SOLUTION

irismaessen
11 - Data Pipeline
11 - Data Pipeline

I had this same question a couple of years ago

The user 'pathfinder' pointed me to the following widget script. I recently had a use for it again and it was still working for me:

 widget.on("beforedatapointtooltip", function(w, args){
 args.template = args.template.replace("/ {{item.percentage}}", "");
});

 

View solution in original post

3 REPLIES 3

irismaessen
11 - Data Pipeline
11 - Data Pipeline

I had this same question a couple of years ago

The user 'pathfinder' pointed me to the following widget script. I recently had a use for it again and it was still working for me:

 widget.on("beforedatapointtooltip", function(w, args){
 args.template = args.template.replace("/ {{item.percentage}}", "");
});

 

subramanian_cv
7 - Data Storage
7 - Data Storage

Thanks, this works. But you can't write a script to handle these smaller changes

subramanian_cv
7 - Data Storage
7 - Data Storage

Can I apply it at the dashboard level? I have too many widgets that needs to handle this, would be difficult to update the script on every widget