How to Append $ on Y-Axis in Axis Charts?

Hello Team Helical Insight,

I am using Helical Insight Application 3.0 version. I have created an axis chart (bar chart). On the values on y axis and tool tip I want to append $. How can that be done.

Thank You.

1 Like

Hi Gupta,

In the created report open in edit mode and add the below code in the JS editor portion of it.

hi_container.set("preExecution",function(c){
var viz_Options = c.get("viz_Options");
viz_Options.chartOptions.axis = {
y : {
tick: {
format: d3.format("$,")
// format: function (d) { return "$" + d; }
}
}
}

c.set("viz_Options",viz_Options);
});

Now generate the report.
append$yaxis

Thank You
Helical Insight Team.