Please help with this graph

I am trying to plot a graph using iReports1.2.5 with names on Xaxis and Age on Yaxis as a line graph.
I wrote the query for that and the data is returning properly. But the graph is not showing any data. I entered $F{age} for series expression and category expression as $F{name} and value expression as $F{total_enters}.
Can someone help me to identiy what iam missig here. This is very urgent for me.

Thanks
cho's picture
cho
267
Joined: Jul 27 2006 - 12:20am
Last seen: 16 years 8 months ago

3 Answers:

Can someone help me how to render graph in jasper reports please?
cho's picture
cho
267
Joined: Jul 27 2006 - 12:20am
Last seen: 16 years 8 months ago
Hi,

Where did you placed the chart? What evaluationTime have you used for it?
Could you post the JRXML here?

You could recheck the supplied examples in the /demo/samples/charts folder of our project distribution.

I hope this helps.
Teodor
teodord's picture
44797
Joined: Jun 30 2006 - 9:00am
Last seen: 2 days 3 hours ago
The series expression gives a way to collect a bunch of data into a set, which is useful when you want to plot multiple things on a single graph, such as age and height. In this case you set the series to be $F{age} so it thinks you have a bunch of different data series.

Set the seriesExpression to "Age", the category expression to "$F{name}" and the value to "$F{age}". That should help.

-Barry
bklawans's picture
3900
Joined: Jul 6 2006 - 1:21pm
Last seen: 6 years 4 days ago
Feedback
randomness