package com.googlecode.gchart.gcharttestapp.client;
import com.googlecode.gchart.client.GChart;
/**
* Defines a scatter-plot of x*x vs. x.
*/
public class GChartExample00 extends GChart {
GChartExample00() {
setChartTitle("x2 vs x");
setChartSize(150, 150);
addCurve();
for (int i = 0; i < 10; i++)
getCurve().addPoint(i,i*i);
getCurve().setLegendLabel("x2");
getXAxis().setAxisLabel("x");
getYAxis().setAxisLabel("x2");
}
}