148
Views
3
Comments
Solved
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

2020-01-08 08-43-00
Rahul Kumar
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

2023-03-08 10-32-19
Vinod Kumar R

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

2020-01-08 08-43-00
Rahul Kumar

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.