Jump to content
Changes to the Jaspersoft community edition download ×

time value in charts

2004 IR Help

Recommended Posts

By: Ncp-den - ncp-den

time value in charts

2005-11-22 10:26


I am trying to build a bar chart, in which the values to draw have not a a numeric format but are time amounts (3h 23 m)per example.So I have avariable like this one:




where $V{planv} is a java.sql.Time.


But if I do that I get this error:


net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressionsjava:197: inconvertible types found : java.sql.Time required: java.lang.Number


There´s a way (using only xml tags, without having to create my own scriplet) that I can have <valueExpression> as an integer (number of seconds or minutes) and have the labels in the axis be drawed with the "hh:mm:ss" format ?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...