Jump to content

Chart: Data points are not appearing on a single graph


paulchurchward

Recommended Posts

Hello,

I have a very simple report that only contains a single line graph. I am displaying it as a PDF froma a java web application (Using Spring). The resulting PDF is creating a multiple sets of axis and on each axis only plotting the last added data point.

See attached pdf and jrxml

 Thanks

Code:



Post Edited by paulchurchward at 01/05/2011 20:56



Post Edited by paulchurchward at 01/05/2011 20:59
Link to comment
Share on other sites

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

 Thanks. That did the trick. I only see one graph now. Oddly though only the last object I put into the list that is wrapped by the JRDatasource is being graphed. 

 

ie: List<?> someList = new ArrayList<?>();

someList.add(new SomeObject(1));
someList.add(new SomeObject(1));
someList.add(new SomeObject(1));

JRDataSource = new JRBeanCollectionDataSource(someList);


only the last object is showing up on the graph...

Link to comment
Share on other sites

Hi,

 

Sorry, I did not pay attention to your series. You have only one dot because all numeric values are set for a single category, the one coming from your $P{JOB_NAME} parameter.

With only one job name, you see only one dot. I suspect your job names must come from a report field as well.

 

I hope this helps.
Teodor

 

Link to comment
Share on other sites

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...