void draw( ChartGraphics g, int[] xValues, double[] stackValues, int lastPlotType ) throws RrdException
	{
		g.setColor( color );
		g.setStroke( lineWidth != 1 ? new BasicStroke(lineWidth) : DEF_LINE_STROKE );

		Graphics2D gd 	= g.getGraphics();
		int len			= values.length;

		double value;
		int ax = 0, ay = 0, nx = 0, ny = 0;

		for ( int i = 0; i < len; i++ )
		{
			value	= values[i];
			nx 		= xValues[i];

			if ( stacked )
				value += stackValues[i];

			ny 		= g.getY( value );

			if ( visible && nx != 0 && ay != Integer.MIN_VALUE && ny != Integer.MIN_VALUE )
				gd.drawLine(ax, -ay, nx, -ny);

			stackValues[i] 	= value;
			ax 				= nx;
			ay 				= ny;
		}

		g.setStroke( STROKE );
	}