How to set the span of axis?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
yeyu710
Posts: 3
Joined: Thu Aug 04, 2005 3:30 pm
Contact:

How to set the span of axis?

Post by yeyu710 » Thu Aug 04, 2005 3:37 pm

如题!
我用这个方法:
plot.setAxisOffset(new Spacer(Spacer.ABSOLUTE,35.0,35.0,35.0,35.0));
但eclipse提示:
The method setAxisOffset(RectangleInsets) in the type CategoryPlot is not applicable for the arguments (Spacer)

(jfreechar 1.0.0,jdk1.4.2)
I'am from china!

dhchou
Posts: 138
Joined: Tue Jul 05, 2005 11:01 pm

Post by dhchou » Fri Aug 05, 2005 4:41 pm

The setAxisOffset method requires RectangleInsets as its parameter. You might want to try:

plot.setAxisOffset(new RectangleInsets(35.0, 35.0, 35.0, 35.0));

Hope this helps.

Daniel

yeyu710
Posts: 3
Joined: Thu Aug 04, 2005 3:30 pm
Contact:

Post by yeyu710 » Sun Aug 07, 2005 8:35 am

Oh ,I am sorry!

It doesn't work!

Thanks!!
I'am from china!

dhchou
Posts: 138
Joined: Tue Jul 05, 2005 11:01 pm

Post by dhchou » Mon Aug 08, 2005 6:20 pm

Could you explain how you want your chart to look? That way, the forum users could post suggestions.

Daniel

Locked