/********************************************************************** # Copyright (c) EWA Systems Inc. 1998 - 2005 All Rights Reserved # No part of this program may be photocopied, reproduced, # or translated to another programming language without # the prior written consent of EWA Systems. **********************************************************************/ package com.ewasystems.chart.test; import java.awt.Color; import com.ewasystems.chart.AxesXY; import com.ewasystems.chart.Chart; import com.ewasystems.chart.ChartData; import com.ewasystems.chart.JFrameChart; /** *

Title: Sample Area Chart

*

Copyright: (c) 1998 - 2005

*

Company: EWA Systems, Inc.

* @author Lincoln Evans-Beauchamp * @version 1.0 */ public class SampleArea extends JFrameChart { public SampleArea() { Chart chart = getChart(); AxesXY axis = new AxesXY(chart); double y[] = {4, -6, 2, 1, -8}; ChartData data = new ChartData(axis, y); data.setDataType(ChartData.DATA_TYPE_FILL); data.setFillColor(Color.blue); } public static void main(String argv[]) { new SampleArea().setVisible(true); } public String toString() {return "Sample Area";} }