how to add date in HH:MM:SS format to the x-axis of the XY-Line chart?

Posted by Aru on Stack Overflow See other posts from Stack Overflow or by Aru
Published on 2010-04-19T06:07:35Z Indexed on 2010/04/19 6:13 UTC
Read the original article Hit count: 553

Filed under:
|

Hi, I want to add date in HH:MM:SS format to the x-axis of XY-Line chart. I am using follwing code to do it. xValueExpression ![CDATA[new SimpleDateFormat("HH:mm:ss").format($F{time})]] /xValueExpression

But it is giving error as can not convert from string to number. Because XY-Line chart takes number on X and Y axis.

So how to achieve this? Or there is any other way to achieve this?

© Stack Overflow or respective owner

Related posts about jasper-reports

Related posts about jrxml