Toggle navigation
By
二***弃
2018-12-20 02:44:50
脚本
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 = { backgroundColor: '#4ba4ba', tooltip: { trigger: 'axis', axisPointer: { type: 'cross', crossStyle: { color: '#999' } } }, legend: { // data:['1年', '3年', '5年'] data: [{ name: '1年', textStyle: { color: '#fff' } }, { name: '3年', textStyle: { color: '#fff' } }, { name: '5年', textStyle: { color: '#fff' } } ] }, // toolbox: { // show: true, // feature: { // dataView: {readOnly: false}, // restore: {}, // saveAsImage: {} // } // }, grid: { y2: 100 }, dataZoom: [{ type: 'inside', show: true, start: 1, end: 35, minValueSpan: 10 }, { type: 'slider', show: true, start: 1, end: 35, minValueSpan: 10 } ], xAxis: [{ type: 'category', axisLine: { lineStyle: { color: '#024' } }, // data: ['高分子科学与工程学院','生命科学学院','网络空间安全学院','华西公共卫生学院(华西第四医院)','国际关系学院','华西口腔医学院(华西口腔医院)','电气信息学院','华西基础医学与法医学院','历史文化学院(旅游学院)','化学学院','数学学院','体育学院','轻纺与食品学院','外国语学院','文学与新闻学院(新闻学院)','化学工程学院','马克思主义学院','匹兹堡学院','物理科学与技术学院(核科学与工程技术学院)','电子信息学院','计算机学院 (软件学院) ','公共管理学院','材料科学与工程学院','商学院','法学院','华西临床医学院(华西医院)','华西药学院','艺术学院','建筑与环境学院','水利水电学院','空天科学与工程学院','华西第二医院','灾后重建与管理学院','制造科学与工程学院','经济学院'], data: ["物理学", "微电子学", "口腔基础医学系-牙合学", "核工程与核技术", "高分子材料与工程专业"], axisPointer: { type: 'shadow' }, axisLabel: { rotate: -35 }, axisLine: { lineStyle: { color: '#024' } } }], yAxis: [{ type: 'value', axisLine: { lineStyle: { color: '#024' } }, scale: true, name: '各专业工作年限平均招聘要求(人数)', max: 4000, min: 0, boundaryGap: [0.2, 0.2] }], series: [{ name: '1年', type: 'bar', data: (function() { var res = []; var len = 5; while (len--) { res.push(Math.round(Math.random() * 3500)); } return res; })() }, { name: '3年', type: 'bar', data: (function() { var res = []; var len = 5; while (len--) { res.push(Math.round(Math.random() * 2000)); } return res; })() }, { name: '5年', type: 'bar', data: (function() { var res = []; var len = 5; while (len--) { res.push(Math.round(Math.random() * 1000)); } return res; })() } ] };