示例#1
0
 /**
  * Image_Graph_AxisLogarithmic [Constructor].
  *
  * Normally a manual creation should not be necessary, axis are
  * created automatically by the {@link Image_Graph_Plotarea} constructor
  * unless explicitly defined otherwise
  *
  * @param int $type The type (direction) of the Axis, use IMAGE_GRAPH_AXIS_X
  *   for an X-axis (default, may be omitted) and IMAGE_GRAPH_AXIS_Y for Y-
  *   axis)
  */
 function Image_Graph_Axis_Logarithmic($type = IMAGE_GRAPH_AXIS_X)
 {
     parent::Image_Graph_Axis($type);
     $this->showLabel(IMAGE_GRAPH_LABEL_MINIMUM + IMAGE_GRAPH_LABEL_MAXIMUM);
     $this->_minimum = 1;
     $this->_minimumSet = true;
 }
示例#2
0
 /**
  * Image_Graph_Axis_Category [Constructor].
  *
  * @param int $type The type (direction) of the Axis
  */
 function Image_Graph_Axis_Category($type = IMAGE_GRAPH_AXIS_X)
 {
     parent::Image_Graph_Axis($type);
     $this->_labels = array();
     $this->setlabelInterval(1);
 }