kuquadrat_1 Posted August 17, 2013 Share Posted August 17, 2013 I am trying to create a chart with lines where dates on the x-axis. The periods between the dates are different. First i selected a category dataset. The only problem was the formatting of the dates which i need in a dd.MM.yy pattern. Other as is in normal reports there is no pattern item. I tried to edit the xml-file but this was not successful. Next step was to try it with a time series dataset. There a period was asked for but as just mentioned a fix period doesn't exist.The Ultimate Guide doesn't tell anything to this.Would be more than happy for help.Another question: is there a documentation about jrxml available?Michael Fischer Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted August 19, 2013 Share Posted August 19, 2013 Hi Michael,you could have formatted the dates in your line chart in the category expression directly (in java), like:java.text.SimpleDateFormat("MM.dd.yy").format($F{date-field})Cheers, Thomashttp://www.ThomasZimmer.net Link to comment Share on other sites More sharing options...
kuquadrat_1 Posted August 20, 2013 Author Share Posted August 20, 2013 Hi Thomas,thank you so much for your reply.First i did was to change the class type from java.sql.Timestamp to java.util.Date.Second i changed the caategory expression as you have suggested. After this the filling process could not work. Maybe a syntax error? In the attached file all is documented.Would be wonderful to hear from you again.Best regards Michael Link to comment Share on other sites More sharing options...
kcd83 Posted March 28, 2014 Share Posted March 28, 2014 new java.text.SimpleDateFormat("MM.dd.yy").format($F{date-field}) or simply new SimpleDateFormat("MM.dd.yy").format($F{date-field}) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now