overlaid category charts 0.9.3

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

overlaid category charts 0.9.3

Post by Andreas Schroeder » Thu Sep 12, 2002 10:08 am

... are not working with 0.9.3 but with 0.9.2, the data is not drawn in 0.9.3 (you get an empty plot with axes, grids, labels, titles, legends...)
The demo as well as my own experiments with overlaid category charts have this problem.

... Submit a new bug?

regards
Andreas Schroecer

David Gilbert

Re: overlaid category charts 0.9.3

Post by David Gilbert » Thu Sep 12, 2002 12:39 pm

Hi Andreas,

I think I recall someone sending me a fix for this, but it doesn't seem to be in my source tree. What you need to do is modify the draw(...) method in the VerticalCategoryPlot class...the call to the render(...) method should not be enclosed in the if statement, it should be just after it like this:

// draw the range markers, if there are any...
if ((this.rangeMarkers!=null) && (this.renderer!=null)) {
Iterator iterator = this.rangeMarkers.iterator();
while (iterator.hasNext()) {
Marker marker = (Marker)iterator.next();
renderer.drawRangeMarker(g2, this, getRangeAxis(), marker,
axisDataArea, dataClipRegion);
}
}
render(g2, axisDataArea, info, dataClipRegion);


Regards,

DG.

Andreas Schroeder

Re: overlaid category charts 0.9.3

Post by Andreas Schroeder » Thu Sep 12, 2002 1:16 pm

... works!
well, that's a quick help :-0 !
Thanks a lot!

Andreas Schroeder

Locked