-- Line Chart Rendering Quality --

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

-- Line Chart Rendering Quality --

Post by alcaWork » Wed Mar 20, 2002 11:14 am

Hello,

I use the JFreeChart Line Chart but the rendering quality (in a JFreeChartPanel) is not that good. Is there a way to improve the visual representation of the Line Chart ?

Thank you

David Gilbert

Re: -- Line Chart Rendering Quality --

Post by David Gilbert » Wed Mar 20, 2002 11:25 am

It depends on the qualities you are looking for. E-mail me a screen copy of the chart and tell me what you think needs fixing...

Regards,

DG.

David Gilbert

Re: -- Line Chart Rendering Quality --

Post by David Gilbert » Wed Mar 20, 2002 1:30 pm

I have the e-mail now...the problem is the antialiasing of lines that are nearly but not quite horizontal.

I expect that this is going to vary across JVMs and different platforms. You can set rendering hints that might improve the output. You will see where the KEY_ANTIALIASING hint is set, early in the draw(...) method of the JFreeChart class. Maybe try setting some other hints in there to see what kind of effect they have.

Reading the Javadocs, the KEY_STROKE_CONTROL hint might help. I don't know though, I've never delved that deep into the inner workings of the Java2D library. I'm happy to take advice from any gurus that happen to be reading...

Regards,

DG.

Locked