Remove Extra Zero from Tooltip

Hello Helical Insight,

I am using Helical Insight 4.0. The tooltip shows 3 decimal places by default. I have whole numbers like 3, 5 etc. On the tooltip, I can see them as 3.000, 5.000 etc. Is there a way to get rid of the extra zeros appearing after the decimal point?

image

Thank You,
Netta.

Hello Netta,

The tooltip format can be modified using the following script in the JS Editor:

hi_container.set("preExecution",function(c){
var viz_Options = c.get("viz_Options");
viz_Options.chartOptions.tooltip = {
format:
{
value:d3.format(',')
}
};
c.set("viz_Options",viz_Options);
});

image

Thank You,
Helical Insight.