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
-- Line Chart Rendering Quality --
Re: -- Line Chart Rendering Quality --
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.
Regards,
DG.
Re: -- Line Chart Rendering Quality --
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.
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.