Version 1.0.13 + setLowerMargin

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
peetzer
Posts: 11
Joined: Mon May 11, 2009 2:20 pm

Version 1.0.13 + setLowerMargin

Post by peetzer » Mon May 11, 2009 2:36 pm

I just downloaded the new jfreechart, also for the use of the ItemLabelPosition in a difference chart which was previously not supported..

All works fine except the setLowerMargin and setUpperMargin on the 'domainAxis', it doesn't matter what I put in.. in the previous version of jfreechart I used it still worked (1.0.1)

What I also noticed is that the tickunits are shown differently..

domainAxis.setAutoRange(false);
domainAxis.setTickUnit(new DateTickUnit (DateTickUnitType.MINUTE, 30));
domainAxis.setVerticalTickLabels(true);

....

domainAxis.setMaximumDate(new Date(30000 * 60 * 48));
plot.setDomainAxis(domainAxis);

It used to display 00:30 01:00 1:30 etc..

Now it displays 00:29 00:59 1:29 etc..

Can somebody advise?

Kind regards Peter

peetzer
Posts: 11
Joined: Mon May 11, 2009 2:20 pm

Re: Version 1.0.13 + setLowerMargin

Post by peetzer » Thu May 14, 2009 7:00 am

I noticed if you have space inside the graph it will be set to 0 when you set the margin to 0 however with the previous version of Jfreechart (1.0.0) the axis value ranges where positioned.. So before the margin between the values/ ranges and the graph where set.. I don't see any other setMargin methods..

Is this a bug?

Regards Peter

Locked