BJ Dela Cruz
BJ Dela Cruz

Reputation: 5354

Span a JFreeChart

I have the following StackedXYAreaChart: enter image description here How do I make my plot span all the way from the left to all the way to the right so that there are no white spaces between the borders of the chart and the plot? Thanks!

Upvotes: 2

Views: 99

Answers (1)

trashgod
trashgod

Reputation: 205785

The createStackedAreaChart() method creates a chart having a StackedAreaRenderer, for which the domain axis is a CategoryAxis. You can adjust the appearance using the setLowerMargin() and setUpperMargin() methods of the axis.

Upvotes: 1

Related Questions