X Axis values not showing properly

Hello Helical Insight,

I am using Helical Insight 4.1GA. I have created an axis chart. The X axis values do not appear properly and the word is broken into single characters line by line. This is giving an improper look to the chart. Is there any script to fix this? You can look at the below image wherein 21 Apr is shown as 2 1 A P R each on different line.

image

Thank You,
Vema.

Hello Vema,

In case if the names on X axis are long and many the chart automatically does that. Add the following script in the JS editor:

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

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

viz_Options.chartOptions.axis = {

x : {

tick: {

multiline: false

}

}

}

c.set("viz_Options",viz_Options);

});

image

Thank You,
Helical Insight.