Keep aspect ratio on autorange

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

Keep aspect ratio on autorange

Postby 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
svobodav
 
Posts: 1
Joined: Wed Nov 22, 2017 2:17 pm

Re: Keep aspect ratio on autorange

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

Cross-posted here.
John Matthews
 
Posts: 388
Joined: Wed Sep 12, 2007 3:18 pm


Return to JFreeChart

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 10 guests