Chart rendering with Windows 10 Scaling and Java 11

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
colomb
Posts: 15
Joined: Fri May 29, 2009 8:10 pm

Chart rendering with Windows 10 Scaling and Java 11

Post by colomb » Tue Jul 02, 2019 3:10 pm

I'm looking into moving from Java 8 to Java 11. I'm running Windows 10 with a monitor that has scaling turned on at 125%. Under Java 8, charts render nicely, but under Java 11, it appears all the elements in the chart are scaled by the 1.25 making them look terrible. Turning windows scaling off fixes the issue, but then the rest of the app is too small. I found this post (viewtopic.php?f=3&t=119655&p=182740&hil ... +x#p182740) related to macOS, which suggests turning buffering off when instantiating the ChartPanel. This does improve rendering, but the chart zoom selection box then looks strange and the chart doesn't seem to behave as consistently when updating series. Any thoughts?

colomb
Posts: 15
Joined: Fri May 29, 2009 8:10 pm

Re: Chart rendering with Windows 10 Scaling and Java 11

Post by colomb » Fri Oct 18, 2019 4:37 pm

Reading through the documentation and code explains the zoom selection rendering differences. It would be nice still to be able to turn on buffering on systems that use scaling with HiDPI monitors.

Locked