Toggle navigation
堆叠柱状图
By
3***5
2020-06-16 02:10:59
脚本
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 = { tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, legend: { data: ['办理量','办结量'], left:'right', icon:'path://M0,0L0,1L1,1L1,0Z' }, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true }, xAxis: { type: 'category', data: ['无权利楼盘新建', '无权利楼盘变更', '期房转现房', '无权利楼盘注销', '期房转现房注销', '国有建设用地使用权首次登记权籍调查', '国有建设用地使用权变更登记权籍调查', '宅基地使用权首次登记权籍调查', '宅基地使用权变更登记权籍调查', '林权权籍调查首次登记', '林权权籍调查变更登记'], axisLabel:{ color:'#666', margin:12, rotate:-60, formatter:function(params){ if(params.length>7&¶ms.length<=10){ return params.slice(0,7) + '\n' + params.slice(7); }else if(params.length>10&¶ms.length<=14){ return params.slice(0,8) + '\n' + params.slice(8); }else if(params.length>14){ return params.slice(0,9) + '\n' + params.slice(9); }else{ return params } } }, axisLine:{ lineStyle:{ color:'#EDEDED' } }, axisTick:{ show:false } }, yAxis: { type: 'value', axisLabel:{ color:'#666' }, axisLine:{ lineStyle:{ color:'#EDEDED' } }, axisTick:{ show:false }, splitLine:{ show:false } }, color:['#DFE6F3','#5A81CB'], series: [{ name: '办结量', type: 'bar', stack: 'all', barWidth:8, data: [120, 132, 101, 134, 90, 230, 210, 132, 101, 234, 290] },{ name: '办理量', type: 'bar', stack: 'all', data: [220, 182, 191, 234, 290, 330, 310, 230, 210, 134, 90] } ] };