Toggle navigation
柱状图_进度条_带背景
By
紧***了
2019-04-25 03:48: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
图表已生成
整理代码
刷新
代码
option = { grid: { show:'true', borderWidth:'0', height:"80%", width:"80%", x:"12%", // y:"20%", }, tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' }, formatter: "{b0}: {c0}" /*formatter: function(params) { var result = ''; params.forEach(function (item) { result += item.marker + " " + item.seriesName + " : " + item.value +""; }); return result; }*/ }, backgroundColor: '#121B2C', //背景色 xAxis: { show: false, //是否显示x轴 type: 'value' }, yAxis: { type: 'category', inverse:true, //让y轴数据逆向 axisLabel: { show: true, textStyle: { color: '#666' //y轴字体颜色 }, formatter: function(value, index) { return [ '{lg|' + (index + 1) + '}' + '{title|' + value + '} ' ].join('\n'); }, //定义富文本标签 rich: { lg: { fontWeight: 'bold', fontSize: 12, //字体默认12 color: '#08C', padding: [0, 5, 0, 0] }, title: { color: '#fff', fontWeight: 'lighter', // borderWidth: 1, // borderColor: '#08c' // textareaBorderColor: '#08c', } } }, splitLine: {show: false}, //横向的线 axisTick: {show: false}, //y轴的端点 axisLine: {show: false}, //y轴的线 data: ['闽DZ0175','闽DZ6027','闽D83876','闽DZ1377','闽DZ8825'] }, series: [ { name: '数据内框', type: 'bar', itemStyle: { normal: { barBorderRadius: 30, color: '#00b5eb', } }, /*label: { normal: { show: true, position: 'right', color: 'red', fontSize: 14, formatter: function(param) { // return 'xx'; }, } },*/ barWidth: 30, data: [11, 33, 77, 39, 55] }, { name: '外框', type: 'bar', itemStyle: { normal: { barBorderRadius: 30, color: 'rgba(255, 255, 255, 0.14)' //rgba设置透明度0.14 } }, barGap: '-100%', z: 0, barWidth: 30, data: [100, 100, 100, 100, 100] } ] };