protected static function setUpPlots( $graph, $config, $data )
	{
		//  --  CREATE PLOTS  --  //
		$plots	= array(
			'y2'	=> array(),
			'y1'	=> array(),
		);
		$nr	= 1;
		while( 1 )
		{
			$prefix		= 'y1.'.$nr++.'.';
			if( !isset( $config[$prefix.'type'] ) )
				break;
			if( $plot = self::createPlot( $config, $data, $prefix ) )
				array_unshift( $plots['y1'], $plot );
		}

		$scaleY2	= self::getConfigValue( $config, "y2.scale" );
		if( $scaleY2 )
		{
			$graph->setY2Scale( $scaleY2 );
			UI_Image_Graph_Components::setAxis( $graph->y2axis, self::getSubConfig( $config, 'y2.axis.' ), $data );
			$nr	= 1;
			while( 1 )
			{
				$prefix		= 'y2.'.$nr++.'.';
				if( !isset( $config[$prefix.'type'] ) )
					break;
				if( $plot = self::createPlot( $config, $prefix ) )
					array_unshift( $plots['y2'], $plot );
			}
		}
		foreach( $plots as $axis => $axisPlots )
			foreach( $axisPlots as $plot )
				( $axis == 'y2' ) ? $graph->addY2( $plot ) : $graph->add( $plot );
	}