Removing information from the tooltip of a bar chart
I have categories visualised in a bar chart, that I want to color based on labels in an additional column.
I've managed to get the exact visualisation I want by using a stacked bar chart and using the color labels in the break by.
However, this means the tooltip always displays a 100% value in addition to my formula result. I'd like to disable the display of this 100% -- is this possible using widget scripts?
-
Hi,
please use this script to remove 100%
widget.on(
"beforedatapointtooltip"
, function(w, args){
args.template = args.template.replace(
"/ {{item.percentage}}"
,
""
);
});
Thanks
0 -
That works great. Thank you!
Iris
0 -
This is great! I am curious if this could also work for a Pie Chart.
I have a user who wanted to see the % of total listed under the category label in a pie chart. I was able to accomplish this by using the Contribution formula. However, now the % is listed twice because it is considered my value and Sisense is still showing the % of total.
0
Please sign in to leave a comment.
Comments
3 comments