Unable to add annotations while creating combined charts usi

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Parveen Kumar

Unable to add annotations while creating combined charts usi

Post by Parveen Kumar » Fri Jan 10, 2003 5:43 pm

Anybody aware of the problem that annotations are not displayed if one uses CombinedXYPlot, make one axis common and plot one or more than one graphs. I tried without using CombinedXYPlot and it successfully displays annotations for single graphs.
This seems to be a serious issue. I'm using jfreechart-0.9.4 libraries.

Thanks for your time,
Parveen

David Gilbert

Re: Unable to add annotations while creating combined charts

Post by David Gilbert » Fri Jan 10, 2003 9:49 pm

Hi Parveen,

Did you add the annotations to the parent plot or the subplots? I would expect the latter to work, but not the former. I'll give it a try when I get a chance, and fix any problems I find.

Regards,

Dave Gilbert

Parveen Kumar

Re: Unable to add annotations while creating combined charts

Post by Parveen Kumar » Fri Jan 10, 2003 10:23 pm

I tried both. first one does nothing, simply doesn't do anything.
second one throws null pointer exception, probably because one axis parameter remains null in subplots. I tried passing the same axis parameter that I used for CombinedXYPlot but then it doesn't allow you to add such subplots to the CombinedXYPlot. So you can't do anything...

Locked