Toggle navigation
双圆形柱状图
By
前***n
2020-07-03 00:49:38
脚本
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 lineColor = '#406A92'; var labelColor = '#fff'; var fontSize = '38'; var lineWidth = 3; option = { backgroundColor: '#031845', grid: { left: '0%', right: '0%', top: '25%', bottom: '7%', containLabel: true }, tooltip: { show: true, trigger: 'axis', textStyle: { fontSize: fontSize } }, legend: { show: true, x: 'center', y: '1%', itemWidth: 45, itemHeight: 18, textStyle: { color: '#fff', fontSize: fontSize }, data:['可靠率','合格率'] }, xAxis: [{ type: 'category', name: '', nameTextStyle: { fontSize: fontSize, color: labelColor, lineHeight: 90, }, axisLabel: { color: labelColor, fontSize: fontSize, margin: 20, }, axisLine: { show: true, lineStyle: { color: lineColor, width: lineWidth } }, axisTick: { show: false }, splitLine: { show: false, lineStyle: { color: '#197584' } }, data: ['城市', '农村'] }], yAxis: [{ type: 'value', name: '', nameTextStyle: { fontSize: fontSize, color: labelColor }, nameGap: 30, axisLabel: { show: false, formatter: '{value}', margin: 20, textStyle: { color: labelColor, fontSize: fontSize, } }, axisLine: { show: false, lineStyle: { color: lineColor, width: lineWidth } }, splitArea: { show: false, areaStyle: { color: ["rgba(128,160,176,.1)", "rgba(250,250,250,0)"] } }, axisTick: { show: false }, splitLine: { show: false, lineStyle: { color: lineColor } } }], series: [{ "name": "", type: 'pictorialBar', symbolSize: [50, 25], symbolOffset: [-75, -10], symbolPosition: 'end', z: 12, tooltip: { show: false }, "label": { "normal": { "show": false, "position": "top", fontSize: fontSize, color: '#fff' } }, color: "#26B2E8", data: [99.9, 99.9] }, { name: '', type: 'pictorialBar', tooltip: { show: false }, symbolSize: [70, 30], symbolOffset: [-75, 15], z: 10, itemStyle: { normal: { color: 'transparent', borderColor: '#2EA9E5', borderType: 'solid', borderWidth: 3 } }, data: [99.9, 99.9] }, { name: '', type: 'pictorialBar', tooltip: { show: false }, symbolSize: [90, 40], symbolOffset: [-75, 20], z: 10, itemStyle: { normal: { color: 'transparent', borderColor: '#26B2E8', borderType: 'solid', borderWidth: 4 } }, data: [99.9, 99.9] }, { name: '', type: 'pictorialBar', symbolSize: [50, 25], tooltip: { show: false }, symbolOffset: [-75, 10], z: 12, "color": "#26B2E8", "data": [99.9, 99.9] }, { type: 'bar', name:'合格率', "barWidth": "50", barGap: '200%', barCateGoryGap: '10%', "label": { "normal": { "show": true, "position": "top", fontSize: fontSize, color: '#fff', opacity: 1, formatter: '{c}%', offset: [0, -20] } }, itemStyle: { normal: { color: '#1E93C6', opacity: 1 }, }, data: [99.9, 99.9] }, { "name": "", type: 'pictorialBar', symbolSize: [50, 25], symbolOffset: [75, -10], symbolPosition: 'end', z: 12, tooltip: { show: false }, "label": { "normal": { "show": false, "position": "top", fontSize: fontSize, color: '#fff' } }, color: "#20D3AB", data: [99.9, 99.9] }, { name: '', type: 'pictorialBar', tooltip: { show: false }, symbolSize: [70, 30], symbolOffset: [75, 15], z: 10, itemStyle: { normal: { color: 'transparent', borderColor: '#20D3AB', borderType: 'solid', borderWidth: 3 } }, data: [99.9, 99.9] }, { name: '', type: 'pictorialBar', tooltip: { show: false }, symbolSize: [90, 40], symbolOffset: [75, 20], z: 10, itemStyle: { normal: { color: 'transparent', borderColor: '#20D3AB', borderType: 'solid', borderWidth: 4 } }, data: [99.9, 99.9] }, { name: '', type: 'pictorialBar', symbolSize: [50, 25], tooltip: { show: false }, symbolOffset: [75, 10], z: 12, "color": "#20D3AB", "data": [99.9, 99.9] }, { type: 'bar', name:'可靠率', "barWidth": "50", barGap: '200%', barCateGoryGap: '10%', "label": { "normal": { "show": true, "position": "top", fontSize: fontSize, color: '#fff', formatter: '{c}%', offset: [0, -20] } }, itemStyle: { normal: { color: '#1AAE96', opacity: 1 }, }, data: [99.9, 99.9] }, ] };