Add Option for Lakhs in Data Label Script

Hello Helical Insight,

We are using Helical Insight 4.1 GA. The values in bar graph label are given in
a.Thousand
b.Million
c.Billion
d.Trillion
under Data label option. We need one more option in Lakh Crore etc. Basically we want to add Indiam numbering system option over here. Is there a way to add this?

Thank You,
Sesa.

Hello Sesa,

The data label customization script is present at location: .../hi/hi-repository/System/Admin/CustomScripts/c3Axis/js/ with filename dataLabel.script .

In this file, on lines 39 to 44, the calculations for various notations (thousands, millions, billions) are specified.
We have added “Lakhs” to this on the line number 42

image

In the same file, on line 205, inside function createConditionPanel, you can see tickFormatter array. This is the part for visualization. Here, we have added “Lakhs” to the visualization so that this option is seen on the frontend.
image

On similar lines, you can add for Crores as well.
The modified file with option for Lakh is attached herewith. Please replace the dataLabel.script file at location
.../hi/hi-repository/System/Admin/CustomScripts/c3Axis/js/
Delete the already applied script and refresh the page. Apply the data label script with the “Lakhs” option.

image

image

Thank You,
Helical Insight.