get the 各个时间段内的数据变化 so get an int of Array!
and then do the following:
drawPolyline
public abstract void drawPolyline(int[] xPoints,
                                  int[] yPoints,
                                  int nPoints)Draws a sequence of connected lines defined by arrays of x and y coordinates. Each pair of (x, y) coordinates defines a point. The figure is not closed if the first point differs from the last point.
Parameters:
xPoints - an array of x points
yPoints - an array of y points
nPoints - the total number of points
Since: 
JDK1.1 
See Also: 
drawPolygon(int[], int[], int)