Hello Helical Insight,
I am using Helical Insight 4.0. In an axis chart, I am getting the numbers in the format k, M, B etc. I would like to show whole numbers without any auto formatting on the Y axis. Please help.
Thank You,
Sesa.
Hello Helical Insight,
I am using Helical Insight 4.0. In an axis chart, I am getting the numbers in the format k, M, B etc. I would like to show whole numbers without any auto formatting on the Y axis. Please help.
Thank You,
Sesa.
Hello Sesa,
By default, scientific formatting is applied on the Y axis to help and improve the readability of the charts.
You can remove the formatting, by adding the following script in the JS editor of your report:
hi_container.set("preExecution",function(c){
var viz_Options = c.get("viz_Options");
viz_Options.chartOptions.axis = {
y : {
tick: {
format: d3.format("")
}
}
}
c.set("viz_Options",viz_Options);
});
In order to have thousand separator, you can replace d3.format(“,”). You can use similar d3.format function to have the formatting that you want on the Y axis ticks.
Thank You,
Helical Insight.