id = $id; $this->size_class = $size; parent::open_flash_chart_api(); // Set title if (!empty($title)){ $this->set_title($title); } // Invoke style method $style_method = "_style_{$style}"; if (method_exists($this, $style_method)){ call_user_method($style_method, $this); } } /* ----------------------------------------------------------------- Public methods ------------------------------------------------------------------ */ /** * Get chart markup. * * @return string */ public function render() { return '
' . parent::render() . '
'; } /* ----------------------------------------------------------------- Styles ------------------------------------------------------------------ */ /** * Normal style. * * @since 0.1 */ private function _style_normal() { $this->title_style = '{ font-size: 14; color: #' . $this->color_secondary . '; }'; $this->set_width(750); $this->set_bg_colour('ffffff'); $this->set_x_axis_colour('ffffff', 'ffffff'); $this->set_y_axis_colour($this->color_tertiary, $this->color_tertiary); } }