Пример #1
0
 /**
  * Constructor
  *
  * @param array $options Default option array
  * @return void
  * @ignore
  */
 public function __construct(array $options = array())
 {
     $this->options = new ezcGraphOdometerChartOptions($options);
     parent::__construct($options);
     $this->data = new ezcGraphChartSingleDataContainer($this);
     $this->addElement('axis', new ezcGraphChartElementNumericAxis());
     $this->elements['axis']->axisLabelRenderer = new ezcGraphAxisCenteredLabelRenderer();
     $this->elements['axis']->axisLabelRenderer->showZeroValue = true;
     $this->elements['axis']->position = ezcGraph::LEFT;
     $this->elements['axis']->axisSpace = 0.05;
 }
Пример #2
0
 /**
  * Constructor
  * 
  * @param array $options Default option array
  * @return void
  * @ignore
  */
 public function __construct(array $options = array())
 {
     $this->additionalAxis = new ezcGraphAxisContainer($this);
     $this->options = new ezcGraphLineChartOptions($options);
     $this->options->highlightFont = $this->options->font;
     parent::__construct();
     $this->addElement('xAxis', new ezcGraphChartElementLabeledAxis());
     $this->elements['xAxis']->position = ezcGraph::LEFT;
     $this->addElement('yAxis', new ezcGraphChartElementNumericAxis());
     $this->elements['yAxis']->position = ezcGraph::BOTTOM;
 }
Пример #3
0
 /**
  * Constructor
  * 
  * @param array $options Default option array
  * @return void
  * @ignore
  */
 public function __construct(array $options = array())
 {
     $this->options = new ezcGraphRadarChartOptions($options);
     $this->options->highlightFont = $this->options->font;
     parent::__construct();
     $this->elements['rotationAxis'] = new ezcGraphChartElementLabeledAxis();
     $this->addElement('axis', new ezcGraphChartElementNumericAxis());
     $this->elements['axis']->position = ezcGraph::BOTTOM;
     $this->elements['axis']->axisLabelRenderer = new ezcGraphAxisRadarLabelRenderer();
     $this->elements['axis']->axisLabelRenderer->outerStep = true;
     $this->addElement('rotationAxis', new ezcGraphChartElementLabeledAxis());
     // Do not render axis with default method, because we need an axis for
     // each label in dataset
     $this->renderElement['axis'] = false;
     $this->renderElement['rotationAxis'] = false;
 }
Пример #4
0
 /**
  * Constructor
  * 
  * @param array $options Default option array
  * @return void
  * @ignore
  */
 public function __construct(array $options = array())
 {
     $this->options = new ezcGraphPieChartOptions($options);
     parent::__construct($options);
     $this->data = new ezcGraphChartSingleDataContainer($this);
 }