Krysalis jCharts
 
  Font size:      
 

Chart Background Paint

PDF
PDF

Background Paint

You can change the java.awt.Paint implementation used for your charts. The default implementation used by jCharts is java.awt.Color.white.

GradientPaint paint= new GradientPaint( 250, 0, Color.white,
                                 250, 800, new Color( 0, 255, 255, 220 ) );
chartProperties.setBackgroundPaint( paint );
			
Gradient Paint
Note
You probably saw the Legend, and wondered why it shares the same background as the Chart. Well, that is by design! The Legend, by default, has no background. We will go over how to assign a Legend Background Paint in the Legend section.


Valid HTML 4.01!Valid CSS!