Toggle navigation
各科目平均交卷时间及各科通过率
By
7***2
2017-11-12 03:22:10
脚本
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
图表已生成
整理代码
刷新
代码
/*---------------------数据----------------------------*/ var echartData = [{ value: 98,//时间 name: '交卷时间' }, { value: 50, name: '未交卷时间' }]; /*---------------------颜色变量----------------------------*/ //蓝色 var innerColor = '#2bff8f'; //内层颜色 var outColor = "#50e0ff"; //外层边框色粗 var textColor = '#50e0ff'; //文字颜色 var startColor = 'rgba(73,223,240,0.1)'; //中间饼图渐变开始颜色 var endColor = 'rgba(73,223,240,0.8)'; //中间饼图渐变结束颜色 //绿色 // var innerColor = '#50e0ff'; //内层颜色 // var outColor = "#2bff8f"; //外层边框色粗 // var textColor = '#50e0ff'; //文字颜色 // var startColor = 'rgba(43,255,143,0.1)'; //中间饼图渐变开始颜色 // var endColor = 'rgba(43,255,143,0.8)'; //中间饼图渐变结束颜色 /*---------------------缩放----------------------------*/ var scale = 1; /*---------------------颜色配置----------------------------*/ var color = [{ type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: startColor // 0% 处的颜色 }, { offset: 1, color: endColor // 100% 处的颜色 }], globalCoord: false // 缺省为 false }, 'none']; /*---------------------富文本----------------------------*/ var rich = { time: { color: innerColor, fontSize: 32 * scale, padding: [0, 0], fontWeight:'bold' }, unit:{ color: innerColor, fontSize: 14 * scale, padding: [0,0,0, 0], verticalAlign:'bottom', } } option = { backgroundColor: '#031f2d', title: [{ text: '整体分析', x: '50%', y: '90%', textAlign: 'center', textStyle: { color: '#fff', textAlign: 'center', fontSize: 24 * scale, fontWeight: 'bold' }, }], legend: { show: false, itemGap: 12, data: ['通过', '未通过'] }, series: [ //内圈圆环 { name: 'Line 0', type: 'pie', clockWise: false, //顺时加载 hoverAnimation: false, //鼠标移入变大 center: ['50%', '50%'], radius: ['50%', '51.5%'], itemStyle: { normal: { color: innerColor } }, data: [{ value: 10, name: '', }], label: { normal: { formatter: function(params) { var time = echartData[0].value; return '{time|' + time + '}{unit|min}'; }, position: 'center', textStyle: { fontSize: 38 * scale, fontWeight: 'bold', color: textColor }, rich:rich } } }, //中间圆环 { name: 'Line 1', type: 'pie', clockWise: false, //顺时加载 hoverAnimation: false, //鼠标移入变大 center: ['50%', '50%'], radius: ['75%', '65%'], color: color, itemStyle: { normal: { label: { show: false }, labelLine: { show: false }, } }, data:echartData, }, //外层圆环 { name: 'Line 2', type: 'pie', clockWise: false, //顺时加载 hoverAnimation: false, //鼠标移入变大 center: ['50%', '50%'], radius: ['75%', '75%'], itemStyle: { normal: { borderWidth: 2* scale, borderColor: outColor, label: { show: false }, labelLine: { show: false }, } }, data: [{ value: 10, name: '', }] } ], };