protected function addLabel($dimension, $label)
    {
        if (!in_array($dimension, array(self::DIMENSION_X, self::DIMENSION_Y))) {
            throw new \InvalidArgumentException(sprintf("Value '%s' is not a valid dimension", $dimension));
        }

        $this->axis[$dimension][] = $label;
    }
protected function addLabel($dimension, $label)
    {
        if (!in_array($dimension, array(self::DIMENSION_X, self::DIMENSION_Y))) {
            throw new \InvalidArgumentException(sprintf("Value '%s' is not a valid dimension", $dimension));
        }

        $this->axis[$dimension][] = $label;
    }
protected function addLabel ( $ dimension , $ label ) { if ( ! in_array ( $ dimension , array ( self :: DIMENSION_X , self :: DIMENSION_Y ) ) ) { throw new \ InvalidArgumentException ( sprintf ( "Value '%s' is not a valid dimension" , $ dimension ) ) ; } $ this -> axis [ $ dimension ] [ ] = $ label ; }
Add a new label to an specific axis.

@param string $dimension The dimension where labels will be displayed
@param mix    $label     Label displayed in this axis
Add a new label to an specific axis .