Toggle navigation
今日各考场承载总考生数
By
7***2
2017-11-14 01:31:37
脚本
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 scale = 1; var echartData = [{ value: 2154, name: '曲阜师范大学' }, { value: 3854, name: '潍坊学院' }, { value: 3515, name: '青岛职业技术学院' }, { value: 3515, name: '淄博师范高等专科' }, { value: 3854, name: '鲁东大学' }, { value: 2154, name: '山东师范大学' }] var rich = { yellow: { color: "#ffc72b", fontSize: 30 * scale, padding: [5, 4], align: 'center' }, total: { color: "#ffc72b", fontSize: 40 * scale, align: 'center' }, white: { color: "#fff", align: 'center', fontSize: 14 * scale, padding: [21, 0] }, blue: { color: '#49dff0', fontSize: 16 * scale, align: 'center' }, hr: { borderColor: '#0b5263', width: '100%', borderWidth: 1, height: 0, } } option = { backgroundColor: '#031f2d', title: { text:'总考生数', left:'center', top:'53%', padding:[24,0], textStyle:{ color:'#fff', fontSize:18*scale, align:'center' } }, legend: { selectedMode:false, formatter: function(name) { var total = 0; //各科正确率总和 var averagePercent; //综合正确率 echartData.forEach(function(value, index, array) { total += value.value; }); return '{total|' + total + '}'; }, data: [echartData[0].name], // data: ['高等教育学'], // itemGap: 50, left: 'center', top: 'center', icon: 'none', align:'center', textStyle: { color: "#fff", fontSize: 16 * scale, rich: rich }, }, series: [{ name: '总考生数量', type: 'pie', radius: ['42%', '50%'], hoverAnimation: false, color: ['#c487ee', '#deb140', '#49dff0', '#034079', '#6f81da', '#00ffb4'], label: { normal: { formatter: function(params, ticket, callback) { var total = 0; //考生总数量 var percent = 0; //考生占比 echartData.forEach(function(value, index, array) { total += value.value; }); percent = ((params.value / total) * 100).toFixed(1); return '{white|' + params.name + '}\n{hr|}\n{yellow|' + params.value + '}\n{blue|' + percent + '%}'; }, rich: rich }, }, labelLine: { normal: { length: 55 * scale, length2: 0, lineStyle: { color: '#0b5263' } } }, data: echartData }] };