Toggle navigation
半环跑道占比图
By
衰***命
2020-07-22 09:33:17
脚本
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 getxsbl = [0, 26.5, 32.5, 27.5, 43]; //学士比例 var getssbl = [0, 42.5, 47.5, 42.5, 47]; //硕士比例 var getbsbl = [0, 30, 20, 30, 10]; //博士比例 var getjslb = ['', '校内专任', '校内兼课', '校外兼职', '校外兼课']; //教师类别 option = { tooltip: { trigger: 'item', formatter: " {b}
{a}占比:{c}%", }, legend: { type: "scroll", height: '88%', right: '20', top: '10', itemWidth: 12, itemHeight: 12, data: ['学士', '硕士', '博士'], color: '#fff', textStyle: { color: '#666', } }, polar: { center: ['50%', '70%'], radius: '90%' //图形大小 }, angleAxis: { type: 'value', startAngle: 180, min: 0, max: 200, splitNumber: 15, //坐标轴分割段数 axisLine: { //坐标轴轴线设置 lineStyle: { color: 'transparent', } }, axisTick: { //坐标轴刻度设置 show: false }, splitLine: { //分割线设置 show: false, }, axisLabel: { //刻度标签设置 margin: 0, formatter: function(value) { if (value <= 100) { return value + '%' } else { return '' } }, textStyle: { color: '#999999' } }, }, radiusAxis: { type: 'category', data: getjslb, axisLine: { //坐标轴轴线设置 show: false, }, axisTick: { //坐标轴刻度设置 show: false }, axisLabel: { //刻度标签设置 margin: 5, //刻度与坐标轴之间的距离 interval: 0, formatter: function(value) { return value.split("").join("\n"); }, textStyle: { color: '#666666', fontSize: 13 } } }, color: ["#4E7BFE", "#26D080", '#F6C137'], series: [{ name: '学士', type: 'bar', stack: '学位', coordinateSystem: "polar", barWidth: 17, //宽度 data: getxsbl }, { name: '硕士', type: 'bar', stack: '学位', coordinateSystem: "polar", barWidth: 17, //宽度 data: getssbl }, { name: '博士', type: 'bar', stack: '学位', coordinateSystem: "polar", barWidth: 17, //宽度 data: getbsbl } ] };