Change Y Axis ticks to Indian Numbering System

Hello Helical Insight,

I am using Helical Insight 4.1GA. On the Y axis, the ticks appear in thousands, millions and gigs (kMG) format. I would like to show the numbers in Indian numbering system (thousands, lakhs and crores). Is there a way to do this?

Thank You,
Sesa.

Hello Sesa,

You can achieve the above by adding external JS script.

We use C3js axis charts. These charts have API for Y axis tick format. By default, the formatting is in K M etc.

We have written custom logic within the format function to achieve the formatting in thousands, lakhs and crores.

Please put the below script in the JS editor:

hi_container.set("preExecution",function(c){

var viz_Options = c.get("viz_Options");

viz_Options.chartOptions["axis"] = {

y:{

tick: {

format: function (d) {

if (d>=0 && d <= 999){

return d;

}

else if(d >= 1000 && d <= 99999){

return d/1000 + 'K';

}

else if(d >= 100000 && d <= 9999999){

return d/100000 + 'L';

}

else if (d >= 10000000){

return d/10000000 + 'C';

}

}

}

}

};

c.set("viz_Options",viz_Options);

});

Output:
image

Thank You,
Helical Insight.