Hello.
I've been searching for an answer, but found only old solution, which probably doesn't work for this version.
How can I prevent the text on axes from stretching, when changing window\chart size?
And, also, how to keep ratio on chart resize?
Thanks for your help in advance.
https://pasteboard.co/JgIGN3j.png
JFreeChart v1.5.0
Re: JFreeChart v1.5.0
See this answer: viewtopic.php?f=3&t=117097&p=178292&hil ... th#p178309
Set the minimum and maximum draw height and width of the chart panel:
Set the minimum and maximum draw height and width of the chart panel:
Code: Select all
chartPanel.setMinimumDrawHeight( 0 );
chartPanel.setMinimumDrawWidth( 0 );
chartPanel.setMaximumDrawHeight( Integer.MAX_VALUE );
chartPanel.setMaximumDrawWidth( Integer.MAX_VALUE );