import com.imsl.chart.*; import java.awt.Color; public class SampleBackgroundGradient extends JFrameChart { public SampleBackgroundGradient() { Chart chart = getChart(); chart.getBackground().setFillType(ChartNode.FILL_TYPE_GRADIENT); chart.getBackground().setGradient(Color.yellow, Color.yellow, Color.red, Color.red); AxisXY axis = new AxisXY(chart); double y[] = {4, 2, 3, 9}; new Data(axis, y); } public static void main(String argv[]) { new SampleBackgroundGradient().setVisible(true); } }