/** * 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; }
/** * Set the defaults. */ protected function set_defaults() { parent::set_defaults(); $yaxis = $this->get_yaxis(0, true); $yaxis->set_min(0); }