Toggle navigation
象形柱图+多数值轴
By
s***3
2020-10-24 05:11:47
脚本
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 color5 = ['#E5E5E5', '#FF726B', '#00FFFF', '#0FFF31']; option = { backgroundColor: '#272b2b', color: color5, textStyle: { fontSize: 18, color: '#F5F5F5' }, title: [{ text: '东方航空', left: '22%', top: "13%", textStyle: { color: '#F5F5F5', fontSize: 21, fontWeight: 'bold', }, textAlign: 'center' }, { text: '中国国航', left: '44%', top: "13%", textStyle: { color: '#F5F5F5', fontSize: 21, fontWeight: 'bold', }, textAlign: 'center' }, { text: '南方航空', left: '63.6%', top: "13%", textStyle: { color: '#F5F5F5', fontSize: 21, fontWeight: 'bold', }, textAlign: 'center' }, { text: '海南航空', left: '84.5%', top: "13%", textStyle: { color: '#F5F5F5', fontSize: 21, fontWeight: 'bold', }, textAlign: 'center' } ], xAxis: [{ splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { show: false } }, { type: 'value', max: 100, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { show: false } }, { gridIndex: 1, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { show: false } }, { gridIndex: 1, type: 'value', max: 100, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { show: false } }, { gridIndex: 2, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { show: false } }, { gridIndex: 2, type: 'value', max: 100, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { show: false } }, { gridIndex: 3, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { show: false } }, { gridIndex: 3, type: 'value', max: 100, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { show: false } } ], yAxis: [{ splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { margin: 30, color: '#F5F5F5', fontSize: 18, align: 'right', }, data: ['取消量', '延误量', '计划航班量', '执行率'] }, { show: false, gridIndex: 1, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { show: false }, data: ['取消量', '延误量', '计划航班量', '执行率'] }, { show: false, gridIndex: 2, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { show: false }, data: ['取消量', '延误量', '计划航班量', '执行率'] }, { show: false, gridIndex: 3, splitLine: { show: false }, axisTick: { show: false }, axisLine: { show: false }, axisLabel: { show: false }, data: ['取消量', '延误量', '计划航班量', '执行率'] } ], grid: [{ left: '17%', top: '25%', width: '12%', height: '70%' }, { left: '38%', top: '25%', width: '12%', height: '70%' }, { left: '58%', top: '25%', width: '12%', height: '70%' }, { left: '78%', top: '25%', width: '12%', height: '70%' } ], series: [{ type: 'pictorialBar', name: 'otherValue', itemStyle: { color: function(params) { return color5[params.dataIndex]; } }, label: { show: true, color: 'auto', position: 'right', offset: [10, 0], formatter: function(param) { return param.dataIndex == 3 ? '' : param.value; } }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", data: [131, 231, 381, 0], z: 10 }, { type: 'pictorialBar', name: 'realValue', xAxisIndex: 1, itemStyle: { color: '#0FFF31', borderColor: "#0FFF31", borderWidth: 1 }, label: { show: true, color: '#0FFF31', position: 'right', offset: [10, 0], formatter: function(param) { return param.value > 0 ? param.value + '%' : ''; } }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", symbolBoundingData: 100, data: [0, 0, 0, 80], z: 10 }, { type: 'pictorialBar', name: 'background', xAxisIndex: 1, itemStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: 'rgba(2,74,124,0.48)' // 0% 处的颜色 }, { offset: 1, color: 'rgba(10,69,163,0.48)' // 100% 处的颜色 }], global: false // 缺省为 false }, borderColor: "#1BC533", borderWidth: 0.5 }, label: { show: false }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", symbolBoundingData: 100, data: [0, 0, 0, 100], z: 2 }, { type: 'pictorialBar', name: 'otherValue', xAxisIndex: 2, yAxisIndex: 1, itemStyle: { color: function(params) { return color5[params.dataIndex]; } }, label: { show: true, color: 'auto', position: 'right', offset: [10, 0], formatter: function(param) { return param.dataIndex == 3 ? '' : param.value; } }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", data: [131, 231, 381, 0], z: 10 }, { type: 'pictorialBar', name: 'realValue', xAxisIndex: 3, yAxisIndex: 1, itemStyle: { color: '#0FFF31', borderColor: "#0FFF31", borderWidth: 0.51 }, label: { show: true, color: '#0FFF31', position: 'right', offset: [10, 0], formatter: function(param) { return param.value > 0 ? param.value + '%' : ''; } }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", symbolBoundingData: 100, data: [0, 0, 0, 80], z: 10 }, { type: 'pictorialBar', name: 'background', xAxisIndex: 3, yAxisIndex: 1, itemStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: 'rgba(2,74,124,0.48)' // 0% 处的颜色 }, { offset: 1, color: 'rgba(10,69,163,0.48)' // 100% 处的颜色 }], global: false // 缺省为 false }, borderColor: "#1BC533", borderWidth: 0.5 }, label: { show: false }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", symbolBoundingData: 100, data: [0, 0, 0, 100], z: 2 }, { type: 'pictorialBar', name: 'otherValue', xAxisIndex: 4, yAxisIndex: 2, itemStyle: { color: function(params) { return color5[params.dataIndex]; } }, label: { show: true, color: 'auto', position: 'right', offset: [10, 0], formatter: function(param) { return param.dataIndex == 3 ? '' : param.value; } }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", data: [131, 231, 381, 0], z: 10 }, { type: 'pictorialBar', name: 'realValue', xAxisIndex: 5, yAxisIndex: 2, itemStyle: { color: '#0FFF31', borderColor: "#0FFF31", borderWidth: 0.51 }, label: { show: true, color: '#0FFF31', position: 'right', offset: [10, 0], formatter: function(param) { return param.value > 0 ? param.value + '%' : ''; } }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", symbolBoundingData: 100, data: [0, 0, 0, 80], z: 10 }, { type: 'pictorialBar', name: 'background', xAxisIndex: 5, yAxisIndex: 2, itemStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: 'rgba(2,74,124,0.48)' // 0% 处的颜色 }, { offset: 1, color: 'rgba(10,69,163,0.48)' // 100% 处的颜色 }], global: false // 缺省为 false }, borderColor: "#1BC533", borderWidth: 0.5 }, label: { show: false }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", symbolBoundingData: 100, data: [0, 0, 0, 100], z: 2 }, { type: 'pictorialBar', name: 'otherValue', xAxisIndex: 6, yAxisIndex: 3, itemStyle: { color: function(params) { return color5[params.dataIndex]; } }, label: { show: true, color: 'auto', position: 'right', offset: [10, 0], formatter: function(param) { return param.dataIndex == 3 ? '' : param.value; } }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", data: [131, 231, 381, 0], z: 10 }, { type: 'pictorialBar', name: 'realValue', xAxisIndex: 7, yAxisIndex: 3, itemStyle: { color: '#0FFF31', borderColor: "#0FFF31", borderWidth: 1 }, label: { show: true, color: '#0FFF31', position: 'right', offset: [10, 0], formatter: function(param) { return param.value > 0 ? param.value + '%' : ''; } }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", symbolBoundingData: 100, data: [0, 0, 0, 80], z: 10 }, { type: 'pictorialBar', name: 'background', xAxisIndex: 7, yAxisIndex: 3, itemStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: 'rgba(2,74,124,0.48)' // 0% 处的颜色 }, { offset: 1, color: 'rgba(10,69,163,0.48)' // 100% 处的颜色 }], global: false // 缺省为 false }, borderColor: "#1BC533", borderWidth: 0.5 }, label: { show: false }, symbolRepeat: "fixed", symbolMargin: 2, symbol: "rect", symbolClip: true, symbolSize: ['15%', '70%'], symbolPosition: "start", symbolBoundingData: 100, data: [0, 0, 0, 100], z: 2 } ] };