swilms Posted December 16, 2009 Share Posted December 16, 2009 Hi,I am new to iReports (and JasperReports) and need some help with creating a chart.My report ist fed by data records containing time intervals. I have got 24variables for each hour of the day. For each data record I check for all hours of the day,if the time interval intersects with that hour. In that case, the respective variable isincremented by 1.As a result I get a list of values assigned to each hour of the day in the summary band:Hour (Static Text) Value (int)00:00 $V{sum0}01:00 $V{sum1}02:00 $V{sum2}.....Is it possible to get this data displayed in a chart (x-axis: hour of day, y-axis: value of variable)?Thanks for your help,Stefanie Link to comment Share on other sites More sharing options...
linvicch Posted December 17, 2009 Share Posted December 17, 2009 Yes,You can either do some trial and error to determine which of the boxes correlate to which axis or feel free to look at the sample reports in Jasperserver :) Link to comment Share on other sites More sharing options...
swilms Posted December 21, 2009 Author Share Posted December 21, 2009 I'm still struggling with the basics. Up to now I worked with SQL queries using a JDBC connection to create some simple reports, including charts that use the same datasource.This time (as described) I don't have an SQL query that provides the data for the chart but a list of calculated values. I guess I need to define a subdataset to get the set of records I need as an input for the chart but I don't know how (i.e. datasource, query ...)Could you give me some advice?linvicch: Where exactly do I find the sample reports? 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