public function actionGender() { $model = new Statistics(); $result = $model->getGender(); $data = $model->convert_json($result); //var_dump($data);die; return $this->render('gender', ['jsondata' => $data]); }
public function actionGender() { $model = new Statistics(); $result = $model->getGender(); $data = $model->convert_json($result); //var_dump($data);die; $title = json_encode(array('text' => '性别')); return $this->render('pie', ['jsondata' => $data, 'title' => $title]); }