URGENT the graph size and the X-axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply

URGENT the graph size and the X-axis

Post by montfort » Tue Sep 05, 2000 9:13 pm

I want to make a time series graph on 4 weeks
how can I resize the x-axis on four weeks
Where can I resize the size of the chartPanel or of the graphs
Thanks for all the ideas

David Gilbert

RE: URGENT the graph size and the X-axis

Post by David Gilbert » Wed Sep 06, 2000 4:19 am


The axis range defaults to 'automatic' which means that the axis tries to display all the available data. To restrict the range, call setAutoRange(false) then set the minimumDate and maximumDate attributes. Unfortunately, I think the get and set methods for minimumDate and maximumDate are not defined (I don't have access to the code at the moment - I know I added the methods recently, but that could be in my development copy and not the released version). But with the source code you shouldn't have much trouble adding the methods yourself.

The chart panel size is controlled by whatever layout manager you are using...the chart draws itself to fill all of the chart panel.



Post Reply