Chart Backgroud

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

Chart Backgroud

Post by Dan » Wed Jan 08, 2003 5:50 pm

I am currently using JFreeCharts 0.9.4. I would like to set the background color of the chart (the area that surounds the plot area within the confines of my height and width.) The chart is being displayed in a JSP and the color of the background changes based when the graph is viewed on different machines, so I would like to set the background color in the code. Any help is much appreciated.

Dan

David Gilbert

Re: Chart Background

Post by David Gilbert » Thu Jan 09, 2003 7:24 am

Try the setBackgroundPaint(...) method in the JFreeChart class.

Regards,

DG

Locked