Forum Discussion

subramanian_cv's avatar
subramanian_cv
Data Storage
06-29-2022
Solved

Stacked bar charts - Values and proportions

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. 

  • 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}}", "");
    });

     

3 Replies

Replies have been turned off for this discussion
  • 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}}", "");
    });

     

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

  • 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