Enable Data Labels with formatting for custom column

Hello Team Helical,

I have a custom column with calculated values as a measure in bar chart. I want to show the data labels but the column is not visible in Data Labels Customization script. How can I enable the data labels? The data labels should show the numbers in thousands/millions depending on the value.I am using Helical Insight 3.0 version

Thank You
Kevin

1 Like

Hello Kevin,

You can enable data labels with scientific number format (k, M etc) of custom columns by using the following script in the JS editor:

hi_container.set("preExecution",function(c){
var viz_Options = c.get("viz_Options");
viz_Options.chartOptions.data = {
labels : {
format:{
NoOfTravels: d3.format(ā€œsā€) //give exact column name
}
}
};
c.set("viz_Options",viz_Options);
});

Thank You
Team Helical