Toggle navigation
办理事项地区排名Top5
By
沉沦在回忆中
2018-03-06 08:07:24
脚本
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 colors = ['#5793f3', '#FFA500']; var city=['南宁市','柳州市', '桂林市','百花市','北海市']; var data1=[845,796,758,699,620]; var data2=[153,129,136,122,101]; option = { title: { text: '办理事项地区排名Top5', textStyle:{ fontSize: '18' } }, color: colors, backgroundColor:'#fff', tooltip: { trigger: 'axis', axisPointer: {type: 'cross'} }, grid: { right: '50%', bottom:'60%' }, legend: { data:['食品生产企业','食品添加剂生产企业'], top:35, left:120 }, xAxis: [ { type: 'category', axisTick: { alignWithLabel: true }, data: city } ], yAxis: [ { type: 'value', name: '受理事项数', min: 0, max: 1500, position: 'left', axisLine: { lineStyle: { color: colors[0] } }, axisLabel: { formatter: '{value} ' } }], series: [{ name:'食品生产企业', stack: '总量', type:'bar', barWidth : 30, data:data1 }, { name:'食品添加剂生产企业', stack: '总量', type:'bar', data:data2 }] };