lineChart xAxis integer days of months worngly formatted
Posted: 17 Apr 2014, 19:41
Hi experts,
i have this code to show a simple chart :
where maxXAxisWEDailyAmt it is just a java int which represents the number of days in a month.
When i plot the chart though i get very bad xAxis format.
something like this with 4 decimal digits:
1.0000 3.1429 5.2857 7.4286 .....
How can i get instead the day of month like natural number:
1 2 3 4 5 .........
thanks for you help in advance.
i have this code to show a simple chart :
Code: Select all
<p:lineChart id="categoryDailyAmt"
value="#{chartBean.dailyWEAmountModel}"
title="#{res.chartCategoryDailyAmt}" minY="0"
maxY="#{chartBean.maxYAxisWE}" minX="1" maxX="# {chartBean.maxXAxisWEDailyAmt}"
animate="true" style="height:300px; margin-top:20px" widgetVar="catAm" />
When i plot the chart though i get very bad xAxis format.
something like this with 4 decimal digits:
1.0000 3.1429 5.2857 7.4286 .....
How can i get instead the day of month like natural number:
1 2 3 4 5 .........
thanks for you help in advance.