Toggle navigation
成绩对比
By
s***8
2019-12-27 01:22:01
脚本
16
21
作品使用的第三方脚本
数据管理
上传数据
支持小于 5M 任意格式(csv, xlsx, json, xml, ...)的数据文件
上传后可以通过生成的文件链接异步获取托管的数据。
历史数据
0 条
无历史数据
代码修改记录
信息提示
保存作品
对当前截图不满意?你还可以
上传本地截图
重新截图
作品名称
作品描述
标签
geo
grid
legend
markLine
markPoint
bar
effectScatter
line
lines
map
timeline
title
toolbox
tooltip
visualMap
作品默认版本
最新
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
20:11:45
图表已生成
整理代码
刷新
代码
option = { title: { text: '' }, tooltip: { trigger: 'axis', formatter: '{b}
{a}:{c}%
{a1}: {c1}小时' }, backgroundColor: "#ffffff", // legend: { // data:['学生成绩','平均分'] // }, toolbox: { show: true, feature: { dataView: { show: true, readOnly: false }, magicType: { show: true, type: ['line', 'bar'] }, restore: { show: true }, saveAsImage: { show: true } } }, calculable: true, dataZoom: [ //dataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。 { show: true, start: 0, end: 100, textStyle: false, maxValueSpan:8, minValueSpan:5, filterMode:'empty' } ], xAxis: [{ type: 'category', data: ['听短对话', '听长对话', '单项选择', '完形填空', '阅读理解', '改错题', '选词填空', '中译英', '英译中', '张三', '张三', '张三'] }], yAxis: [{ type: 'value', name: '答题正确率: %' }, { type: 'value', name: "平均作答时长: 小时" } ], series: [{ name: '答题正确率', type: 'bar', barMaxWidth: 25, data: [110, 90, 80, 70, 60, 100, 110, 120, 110, 150, 110, 98], markPoint: { data: [{ type: 'max', name: '最大值' }, { type: 'min', name: '最小值' } ] } }, { name: '平均作答时长', type: 'line', yAxisIndex: 1, //这里要设置哪个y轴,默认是最左边的是0,然后1,2顺序来。 data: [30, 80, 80, 70, 60, 10, 50, 10, 40, 80, 70, 78], symbolSize: 10, itemStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: 'rgb(255, 204, 102)' }, { offset: 1, color: 'rgb(255, 153, 51)' }]), label: { show: false, position: 'top', textStyle: { fontSize: '14', color: 'rgb(255, 156, 54)', } } }, }, } ] };