Reputation: 1645
I have dynamic pie set and if there are a lot of series then pie get small.
How to set fixed pie chart radius.
Upvotes: 1
Views: 602
Reputation: 205785
A PiePlot
grows to fill the space available, so you'll need to give it room to grow. Some possible approaches:
Override getPreferredSize()
and use a suitable layout, as shown here among other suggestions.
Display the legend items in an adjacent component, as shown here, leaving the chart alone to fill it's container.
Reposition the legend within the chart, as shown here for the default RectangleEdge.BOTTOM
.
Upvotes: 1