Keep aspect ratio on autorange

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
svobodav
Posts: 1
Joined: Wed Nov 22, 2017 2:17 pm
antibot: No, of course not.

Keep aspect ratio on autorange

Post by svobodav » Wed Nov 22, 2017 2:27 pm

Hello,
is there easy way to keep aspect ratio on chartPanel.restoreAutoBounds();? I have my own method for aspect ratio, but when I call it after autoBounds, objects in chart sometimes overflow out of visible area. I use XYLineChart. Thanks

John Matthews
Posts: 443
Joined: Wed Sep 12, 2007 3:18 pm

Re: Keep aspect ratio on autorange

Post by John Matthews » Thu Nov 23, 2017 2:38 pm

Cross-posted here.

Post Reply