Adds an Axis to the JpGraph Graph Object.
@access		public
@static
@param		Graph		$object			JpGraph Graph Object
@param		array		$config			Configuration Data
@param		array		$data			Graph Data
@return		void
425199
public static function setAxis( $object, $config, $data )
	{
		$object->setColor( self::getConfigValue( $config, 'color', 'black' ) );
		$object->setWeight( self::getConfigValue( $config, 'weight', 1 ) );
		$object->SetTextLabelInterval( self::getConfigValue( $config, 'label.interval', 1 ) );
		$object->SetLabelAngle( self::getConfigValue( $config, 'label.angle', 0 ) );
		self::setTitle( $object->title, self::getSubConfig( $config, 'title.' ) );
		self::setFont( $object, self::getSubConfig( $config, 'label.' ) );

		$labels		= self::getConfigValue( $config, 'label.data' );
		if( $labels )
		{
			if( !isset( $data[$labels] ) )
				throw new Exception( 'Data source "'.$labels.'" is not available.' );
			$object->setTickLabels( $data[$labels] );
		}
		$grace		= self::getConfigValue( $config, 'scale.grace', 0 );
		if( $grace )
			$object->scale->setGrace( $grace );
	}
707543
public function on(string $object): Graph
    {
        $key = "... on {$object}";
        return ($this->modules[$key] = (new Graph())->setKeyName($key));
    }
822830
protected function _initialize(ObjectConfig $config)
    {
        $config->append(array(
            'max' => PHP_INT_MAX,
            'min' => ~PHP_INT_MAX,
        ));

        parent::_initialize($config);
    }
282130
public function add($object)
    {
        if ($this->removedNodes->contains($object)) {
            $this->removedNodes->detach($object);
        }
        if (!$this->addedNodes->contains($object)) {
            $this->addedNodes->attach($object);
        }
        parent::add($object);
    }
546209
def add(object)
      key, id = to_key_and_id(object)

      @graph[key] ? @graph[key] << id : @graph[key] = [id]
    end
1278933
protected function buildGraph(&$graph, $distanceComputeCallback, array $objects)
	{
		$graph = new Helpers\Graph();

		while($object = array_shift($objects))
		{
			$graph->addNode(
				$object,
				$this->computeDistances($object, $objects, $distanceComputeCallback)
				);
		}
	}
1314277
public static function setValue( $object, $config )
	{
		$show		= self::getConfigValue( $config, 'value.show' );
		$weight		= self::getConfigValue( $config, 'value.weight' );
		$fillColor	= self::getConfigValue( $config, 'value.fill.color' );
		$object->value->show( (bool) $show );
		if( $show )
			self::setFont( $object, $config );
	}
255981
protected function _initialize(ObjectConfig $config)
    {
        $config->append(array(
            'method'  => self::GET,
            'url'     => '',
            'headers' => array()
        ));

        parent::_initialize($config);
    }
674928
protected function _initialize(ObjectConfig $config)
    {
        $config->append(array(
            'database'  => '',
            'host'      => ini_get('mysqli.default_host'),
            'username'  => ini_get('mysqli.default_user'),
            'password'  => ini_get('mysqli.default_pw'),
            'port'      => ini_get('mysqli.default_port'),
            'socket'    => ini_get('mysqli.default_socket')
        ));

        parent::_initialize($config);
    }
706169
protected function _initialize(ObjectConfig $config)
    {
        if (empty($config->resolvers))
        {
            $config->append(array(
                'resolvers' => array('extension')
            ));
        }

        parent::_initialize($config);
    }
938566
public function also( $subject, $predicate = null, $object = null ) {
		$this->graphBuilder->also( $subject, $predicate, $object );
		return $this;
	}
638294
public function optional( $subject, $predicate = null, $object = null ) {
		$this->graphBuilder->optional( $subject, $predicate, $object );
		return $this;
	}
22016
protected function configure(Config $config, array $json) : void
    {
        Util::validateJsonConfiguration($json);

        foreach (HookUtil::getValidHooks() as $hook => $class) {
            if (isset($json[$hook])) {
                $this->configureHook($config->getHookConfig($hook), $json[$hook]);
            }
        }
    }
55848
public function addGraphMetadata(GraphNode $node, GraphMetadataInterface $data)
    {
        $this->nodes[] = [
            'node'   => $node,
            'object' => $data,
        ];

        return $this;
    }
55624
protected function _initialize(ObjectConfig $config)
    {
        $config->append(array(
            'priority' => self::PRIORITY_LOWEST,
        ));

        parent::_initialize($config);
    }
239327
function setData($object, array $data)
    {
        if (! $this->has($object) )
            throw new \Exception('Object Not Found.');

        if ($data == array_values($data))
            throw new \InvalidArgumentException('Data tags must be associative array.');


        $hash = $this->genETag($object);
        $this->_objs[$hash]['data'] = $data;
        return $this;
    }
97852
public static function setSubTitle( $graph, $config )
	{
		if( empty( $config['subtitle'] ) )
			return;
		$graph->subtitle->Set( $config['subtitle'] );
		self::setFont( $graph->subtitle, self::getSubConfig( $config, 'subtitle.' ) );
	}