Avoid Decimal Values in X-Axis Bar Graph
Application Type
Reactive
Service Studio Version
11.10.18 (Build 41211)

HI All,

How to avoid decimals in X Axis bar graph.

Regards,

Vinod

Solution

Hi Vinod, 

Hope you are doing well.

You will have to format chart elements by using Highcharts JSON.

Go to the AdvancedFormat Property of your Chart, Open Expression Editor window and put the below code

AdvancedFormat_Init(DataPointFormats:,DataSeriesFormats:,XAxisJSON:,YAxisJSON:,HighchartsJSON:

"xAxis: {
allowDecimals: false
},"

)



Supporting images:

 Hope this help,

Thanks and Regards

Rahul

Hi Rahul,

Thanks for your inputs.


I have changed xAxis to yAxis since in OutSystems it is reverse.


AdvancedFormat_Init(DataPointFormats:,DataSeriesFormats:,XAxisJSON:,YAxisJSON:,HighchartsJSON:

"yAxis: {
allowDecimals: false
},"

)



Regards,

Vinod

Yup, Right

It is going to be reversed.  

Thanks 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.