I want to be able to create the following jasper report
Main report with general information and then multiple charts (dynamic number of them)
Currently i have only a single chart in this report and i supply to it a list of objects (from java) where each have a "key" (which is a Date) and a value which is a Number
For this single chart, all works fine, Now, when i want to draw multiple charts , i am not sure how to progress
From other posts i see that some use "sub-report" and on the sub report they place the chart
I tried this, charts do appear multiple times but empty This is my data set more or less
class ChartData{
String name;
List<ChartItem> items;
}
class ChartItem{
Date key;
Integer value;
}
How do i pass data from the main report to the sub report? How do i use it in the sub report? I will use the "name" member as a title above the chart