public function actionMajor()
 {
     $model = new Statistics();
     $result = $model->getMajor();
     $data = $model->convert_json($result);
     //var_dump($data);die;
     return $this->render('major', ['jsondata' => $data]);
 }
 public function actionMajor()
 {
     $model = new Statistics();
     $result = $model->getMajor();
     $data = $model->convert_json($result);
     //var_dump($data);die;
     $title = json_encode(array('text' => '专业'));
     return $this->render('histogram', ['jsondata' => $data, 'title' => $title]);
 }