Toggle navigation
By
n***2
2020-11-13 09:08:14
脚本
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
图表已生成
整理代码
刷新
代码
yName = [ '学前教育', '初等教育', '语文教育', '英语教育', '音乐教育', '美术教育', '体育教育', '数学教育', '汉语', '环境艺术设计', '建筑经济管理', '会计与审计', '涉外旅游', '老年服务与管理', '护理', '康复治疗技术', '计算机教育', '科学教育', ] data = [ [13, 23, 34, 45, 15, 13, 23, 34, 45, 15, 13, 23, 34, 45, 15, 34, 45, 15], [68, 69, 65, 70, 74, 68, 69, 65, 70, 74, 68, 69, 65, 70, 74, 68, 69, 65] ] option = { grid: { left: '5%', right: '5%', bottom: '5%', top: '10%', containLabel: true }, tooltip: { trigger: 'axis', axisPointer: { type: 'shadow', }, textStyle: { // color: 'rgba(0, 186, 255, 1)' }, formatter: function(params) { console.log(params) return params[0].name + '
' + params[0].seriesName + ' : ' + params[0].value + '%
' + params[1].seriesName + ' : ' + params[1].value + '%
' } }, // backgroundColor: 'rgb(20,28,52)', xAxis: { show: false, type: 'value' }, yAxis: [{ type: 'category', inverse: true, axisLabel: { show: true, textStyle: { color: 'rgba(111, 132, 189, 1)' }, }, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, data: yName }, ], series: [{ name: '学位授予', type: 'bar', zlevel: 1, itemStyle: { normal: { barBorderRadius: [0, 30, 30, 0], color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ offset: 0, color: 'rgba(101, 105, 255, 1)' }, { offset: 1, color: 'rgba(0, 192, 240, 1)' }]), }, }, barWidth: 20, data: data[0] }, { name: '总人数', type: 'bar', barWidth: 20, barGap: '-100%', data: data[1], itemStyle: { normal: { color: '#15497B', opacity: 0.3, barBorderRadius: [0, 30, 30, 0], } }, }, ] };