Addition of custom text like percentage in tooltip

Hello Team,
I am using Helical Insight 3.1 EE. I have created a chart which is showing percentage information. However I would like to append and show a Percentage symbol in front of the numeric values in tooltip. Is that possible?

Thank You
Harika

1 Like

Hello Harika,

you can create the chart. Then in editor portion of the chart you can add the below JS function. This will append %.
In a similar way you can add other symbols / make other changes also as per your needs.

hi_container.set("preExecution",function(c){
var viz_Options = c.get("viz_Options");
viz_Options.chartOptions.tooltip = {
format: {
value: function (value, ratio, id) {
return value + ' %';
}
}
}
c.set("viz_Options",viz_Options);
});

After applying the above script the chart tool tip is appearing as below

Thank You
Team Helical