src/UI/Image/Graph/Builder.php
protected static function buildGraph( $config, $data )
	{
		$graph = new Graph( $config['width'], $config['height'], 'auto' );
		$graph->setScale( self::getConfigValue( $config, 'scale' ) );
		$graph->img->SetAntiAliasing( self::getConfigValue( $config, 'image.antialias', FALSE ) ); 
		
		UI_Image_Graph_Components::setTitle( $graph, $config );
		UI_Image_Graph_Components::setSubTitle( $graph, $config );
		UI_Image_Graph_Components::setLegend( $graph, self::getSubConfig( $config, "legend." ) );
		UI_Image_Graph_Components::setFrame( $graph, $config );
		UI_Image_Graph_Components::setShadow( $graph, $config );
		UI_Image_Graph_Components::setAxis( $graph->xaxis, self::getSubConfig( $config, 'x.axis.' ), $data );
		UI_Image_Graph_Components::setAxis( $graph->yaxis, self::getSubConfig( $config, 'y1.axis.' ), $data );

		self::setUpMargin( $graph, $config );
		self::setUpGrid( $graph, $config, $data );
		self::setUpPlots( $graph, $config, $data );
		return $graph;
	}
protected static function buildGraph( $config, $data )
	{
		$graph = new Graph( $config['width'], $config['height'], 'auto' );
		$graph->setScale( self::getConfigValue( $config, 'scale' ) );
		$graph->img->SetAntiAliasing( self::getConfigValue( $config, 'image.antialias', FALSE ) ); 
		
		UI_Image_Graph_Components::setTitle( $graph, $config );
		UI_Image_Graph_Components::setSubTitle( $graph, $config );
		UI_Image_Graph_Components::setLegend( $graph, self::getSubConfig( $config, "legend." ) );
		UI_Image_Graph_Components::setFrame( $graph, $config );
		UI_Image_Graph_Components::setShadow( $graph, $config );
		UI_Image_Graph_Components::setAxis( $graph->xaxis, self::getSubConfig( $config, 'x.axis.' ), $data );
		UI_Image_Graph_Components::setAxis( $graph->yaxis, self::getSubConfig( $config, 'y1.axis.' ), $data );

		self::setUpMargin( $graph, $config );
		self::setUpGrid( $graph, $config, $data );
		self::setUpPlots( $graph, $config, $data );
		return $graph;
	}
protected static function buildGraph ( $ config , $ data ) { $ graph = new Graph ( $ config [ 'width' ] , $ config [ 'height' ] , 'auto' ) ; $ graph -> setScale ( self :: getConfigValue ( $ config , 'scale' ) ) ; $ graph -> img -> SetAntiAliasing ( self :: getConfigValue ( $ config , 'image.antialias' , FALSE ) ) ; UI_Image_Graph_Components :: setTitle ( $ graph , $ config ) ; UI_Image_Graph_Components :: setSubTitle ( $ graph , $ config ) ; UI_Image_Graph_Components :: setLegend ( $ graph , self :: getSubConfig ( $ config , "legend." ) ) ; UI_Image_Graph_Components :: setFrame ( $ graph , $ config ) ; UI_Image_Graph_Components :: setShadow ( $ graph , $ config ) ; UI_Image_Graph_Components :: setAxis ( $ graph -> xaxis , self :: getSubConfig ( $ config , 'x.axis.' ) , $ data ) ; UI_Image_Graph_Components :: setAxis ( $ graph -> yaxis , self :: getSubConfig ( $ config , 'y1.axis.' ) , $ data ) ; self :: setUpMargin ( $ graph , $ config ) ; self :: setUpGrid ( $ graph , $ config , $ data ) ; self :: setUpPlots ( $ graph , $ config , $ data ) ; return $ graph ; }
Builds and returns the Graph Object.
@access		protected
@static
@param		array		$config			Configuration Data
@param		array		$data			Graph Data
@return		Graph
Builds and returns the Graph Object .