2nd Y axis patch

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

2nd Y axis patch

Post by Ron Chan » Fri Sep 06, 2002 12:02 pm

my 2nd Y axis patch, which works with 0.9.2 no longer works with 0.9.3

it is based on some hacks I've made to OverlaidVerticalCategoryPlot

it compiles, it runs without errors, and it displays the 2nd Y axis with the correct scale, but it just doesn't plot the line

are their any changes made in the new version that prohibits the use of an overlaid chart?

thanks
Ron

David Gilbert

Re: 2nd Y axis patch

Post by David Gilbert » Fri Sep 06, 2002 12:16 pm

The order of some parameters in the ValueAxis constructor changed between 0.9.2 and 0.9.3, this might be causing the problem. I haven't had a chance to evaluate your code yet...

Regards,

DG.

Ron Chan

Re: 2nd Y axis patch

Post by Ron Chan » Fri Sep 06, 2002 1:12 pm

I've found it, but still need your help David...

In this piece of code in VerticalCategoryPlot

// 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);
}

I need to move the "render(g2..." to outside the if brackets, is this OK?

seems to work for me ;-)

Locked