-
大小: 59.23MB文件类型: .zip金币: 1下载: 0 次发布日期: 2022-07-25
- 语言: Java
- 标签: jsp+ssm+mysq ssm考试 考试系统
资源简介
因上传限制大小,该资源仅包含工程源代码及sql文件,如需查看导入视频 可直接百度搜索 jsp+ssm+mysql实现在线考试系统 在线观看视频
代码片段和文件信息
package com.taohan.online.exam.charts;
import java.util.Map;
import java.util.Set;
import org.springframework.stereotype.Repository;
import com.github.abel533.echarts.axis.CategoryAxis;
import com.github.abel533.echarts.axis.ValueAxis;
import com.github.abel533.echarts.code.Magic;
import com.github.abel533.echarts.code.Tool;
import com.github.abel533.echarts.code.Trigger;
import com.github.abel533.echarts.code.X;
import com.github.abel533.echarts.code.Y;
import com.github.abel533.echarts.feature.MagicType;
import com.github.abel533.echarts.json.GsonOption;
import com.github.abel533.echarts.series.Line;
import com.taohan.online.exam.po.ClassInfo;
/**
*
* title: StudentCount
* Description: (年级下/所有)班级的学生总量 相关图表Json数据生成
* @author: taohan
* @date: 2018-9-17
* @time: 下午7:03:13
* @version: 1.0
*/
@Repository
public class StudentCount {
/**
* 班级对应学生人数折线图
* @param data
* @return
*/
public static String createBarJson(Mapject> data) {
Set set = data.keySet();
GsonOption option = new GsonOption();
option.title().text(“班级学生数量统计“).x(X.center).y(Y.top).borderWidth(1).textstyle().color(“#438EB9“);
option.toolbox().show(true).feature(Tool.mark Tool.restore new MagicType(Magic.bar Magic.line) Tool.saveAsImage).x(X.right).y(Y.top);
//数据默认触发, 鼠标移入显示竖线 trigger(Trigger.axis)
option.tooltip().formatter(“{b} {c}人“).trigger(Trigger.axis);
option.legend().data(“班级总人数“).x(X.center).y(Y.bottom).borderWidth(1);
Line line = new Line(“班级总人数“);
//值轴
ValueAxis valueAxis = new ValueAxis();
valueAxis.axisLabel().formatter(“{value}人“).textstyle().color(“#438EB9“);
//valueAxis.min(0);
option.yAxis(valueAxis);
//类目轴
CategoryAxis categoryAxis = new CategoryAxis();
//interval(0):设置横轴信息全部显示
//rotate(-30):设置 -30 度角倾斜显示
categoryAxis.axisLabel().interval(0).rotate(-30).textstyle().color(“#438EB9“);
for (String className : set) {
categoryAxis.data(className);
ClassInfo classInfo = (ClassInfo)data.get(className);
line.data(classInfo.getClassId());
}
option.xAxis(categoryAxis);
line.smooth(true);
option.series(line);
option.grid().x(100);
System.out.println(option.toString());
return option.toString();
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-05-24 14:30 导入文件示例文件\
文件 10541 2018-10-17 15:09 导入文件示例文件\sample.xlsx
目录 0 2019-05-24 14:30 数据库文件\
文件 9263 2018-10-19 16:01 数据库文件\db_online_ssm(无数据).sql
文件 1347125 2018-10-19 15:50 数据库文件\db_online_ssm.sql
目录 0 2019-05-24 14:30 运行截图\
文件 14783 2018-10-19 13:49 运行截图\0.png
文件 118264 2018-10-19 13:49 运行截图\1.png
文件 24220 2018-10-19 15:38 运行截图\10.png
文件 85757 2018-10-19 15:39 运行截图\11.png
文件 76334 2018-10-19 15:39 运行截图\12.png
文件 102394 2018-10-19 15:39 运行截图\13.png
文件 75264 2018-10-19 15:40 运行截图\14.png
文件 128910 2018-10-19 15:40 运行截图\15.png
文件 98308 2018-10-19 15:40 运行截图\16.png
文件 122568 2018-10-19 15:41 运行截图\17.png
文件 115885 2018-10-19 15:41 运行截图\18.png
文件 104911 2018-10-19 15:41 运行截图\19.png
文件 102707 2018-10-19 13:50 运行截图\2.png
文件 97830 2018-10-19 15:41 运行截图\20.png
文件 108539 2018-10-19 15:42 运行截图\21.png
文件 103961 2018-10-19 15:42 运行截图\22.png
文件 146631 2018-10-19 15:42 运行截图\23.png
文件 130398 2018-10-19 15:43 运行截图\24.png
文件 151159 2018-10-19 15:44 运行截图\25.png
文件 117397 2018-10-19 15:44 运行截图\26.png
文件 98489 2018-10-19 15:45 运行截图\27.png
文件 99742 2018-10-19 15:45 运行截图\28.png
文件 106019 2018-10-19 15:45 运行截图\29.png
文件 110519 2018-10-19 13:51 运行截图\3.png
文件 100979 2018-10-19 15:45 运行截图\30.png
............此处省略799个文件信息
相关资源
- jsp+ssm+mysql在线考试系统
- java swing学生考试系统
- 学习笔记:javaWeb考试系统(基于MVC模
- Java_GUI_SWing考试系统_MySql.rar
- jsp在线考试系统论文
- 基于springboot的在线视频学习及考试系
- VB考试系统,随心所欲,数据库,51
- java的C/S架构实现的远程考试系统
- 标准化考试系统单机版
- 标准化考试系统
- 软件工程课程设计,教务考试系统
- 基于UDP的考试系统(完整)
- java开发的CS标准考试系统
- JAVA编写的驾校在线考试系统
- 在线考试系统完整代码,JAVA源码
- 考试系统(BS)
- jsp+mysql在线考试系统论文.rar
- JAVA语言考试系统的设计与实现(论文
- java简单桌面考试系统可实现倒计时、
- jsp在线考试系统外文翻译
- 在线考试系统jsp+servlet_jap+servlet考试
- JAVA语言考试系统的设计与实现(论文
- Java版的考试系统,Mysql数据库
- JSP在线考试系统JSP在线考试系统
- 基于JAVA的考试系统中题库设计及组卷
- 基于C/S的在线考试系统
- javaEE大作业 网上考试系统设计代码、
- jsp+sql sever在线考试系统,简单易用
- java web开源项目在线考试系统
- JavaWeb在线考试系统
评论
共有 条评论