public function actionCollege() { $model = new Statistics(); $result = $model->getCollege(); $data = $model->convert_json($result); //var_dump($data);die(); $title = json_encode(array('text' => '学院')); return $this->render('histogram', ['jsondata' => $data, 'title' => $title]); }