public function getSignInfoImage()
 {
     $commit = session("personSgnInfo");
     $total = $commit['total'];
     $chart = new Chart();
     $title = "签到情况(共签到" . $total . "次)";
     //标题
     $data = array($commit['come'], $commit['notcome']);
     //数据
     $size = 100;
     //尺寸
     $width = 500;
     //宽度
     $height = 250;
     //高度
     $legend = array("已到次数(" . $commit['come'] . ")", "缺勤次数(" . $commit['notcome'] . ")");
     //说明
     $chart->create3dpie($title, $data, $size, $height, $width, $legend);
 }
 public function jpgTest()
 {
     $commit = session("commit");
     $total = $commit['commit_info']['count_come'] + $commit['commit_info']['count_notcome'];
     $chart = new Chart();
     $title = "统计(" . $total . "人)";
     //标题
     $data = array($commit['commit_info']['count_come'], $commit['commit_info']['count_notcome']);
     //数据
     $size = 80;
     //尺寸
     $width = 200;
     //宽度
     $height = 180;
     //高度
     $legend = array("已到人数(" . $commit['commit_info']['count_come'] . ")", "缺勤人数(" . $commit['commit_info']['count_notcome'] . ")");
     //说明
     $chart->create3dpie($title, $data, $size, $height, $width, $legend);
 }