Exemple #1
0
 /**
  * Initialize the renderer and overwrite it with an 2:1 ration renderer
  */
 protected function init()
 {
     $this->renderer = new SVGRenderer(100, 100);
     $this->setAxis(Axis::createLinearAxis());
 }
Exemple #2
0
 /**
  * Factory method, create an Axis instance using Linear ticks as the unit
  *
  * @return  Axis        The axis that has been created
  * @see     LinearUnit
  */
 public static function createLinearAxis()
 {
     $axis = new Axis();
     $axis->setUnitForXAxis(self::linearUnit());
     $axis->setUnitForYAxis(self::linearUnit());
     return $axis;
 }