001 /*
002 * This file is part of the Echo Point Project. This project is a
003 * collection of Components that have extended the Echo Web Application
004 * Framework Version 3.
005 *
006 * Version: MPL 1.1
007 *
008 * The contents of this file are subject to the Mozilla Public License Version
009 * 1.1 (the "License"); you may not use this file except in compliance with
010 * the License. You may obtain a copy of the License at
011 * http://www.mozilla.org/MPL/
012 *
013 * Software distributed under the License is distributed on an "AS IS" basis,
014 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
015 * for the specific language governing rights and limitations under the
016 * License.
017 */
018
019 package echopoint.google.chart;
020
021 import echopoint.google.chart.internal.AdvancedChart;
022
023 /**
024 * Component wrapper for a
025 * <a href='http://code.google.com/apis/chart/#line_charts'>Line chart</a>
026 * provided by <a href='http://code.google.com/apis/chart/'>Google Chart
027 * API</a>.
028 *
029 * <p>The following code shows sample use of this component:</p>
030 * <pre>
031 * import echopoint.google.chart.LineChart;
032 * import echopoint.google.chart.model.ChartData;
033 *
034 * ...
035 * final ChartData<Integer> data = new ChartData<Integer>();
036 * final Integer[] array = new Integer[] { 30,60,70,90,95,110 };
037 * final List<Integer> xdata = Arrays.asList( array );
038 * final int xmax = 120;
039 *
040 * data.setXdata( xdata );
041 * data.setXmax( xmax );
042 *
043 * final LineChart<Integer> chart = new LineChart<Integer>();
044 * final ArrayList<ChartData<Integer>> collection = new ArrayList<ChartData<Integer>>();
045 * collection.add( data );
046 * chart.setData( collection );
047 * </pre>
048 *
049 * @author Rakesh Vidyadharan 2008-08-10
050 * @version $Id: LineChart.java 64 2008-09-01 11:28:02Z sptrakesh $
051 */
052 public class LineChart<N extends Number> extends AdvancedChart<N>
053 {
054 private static final long serialVersionUID = 1l;
055 }