Exemplo n.º 1
0
 /**
  * Get parent JSON and add specific pie related attributes and values.
  *
  * @return array
  */
 public function jsonSerialize()
 {
     // @codingStandardsIgnoreLine (CONTRIB-6469).
     $data = parent::jsonSerialize();
     $data['doughnut'] = $this->get_doughnut();
     return $data;
 }
Exemplo n.º 2
0
 /**
  * Set the defaults.
  */
 protected function set_defaults()
 {
     parent::set_defaults();
     $yaxis = $this->get_yaxis(0, true);
     $yaxis->set_min(0);
 }