Toggle navigation
欧洲机场旅客吞吐量
By
132*****250
2020-02-13 07:18:13
脚本
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 data = { "airport": ["伦敦希斯罗","巴黎戴高乐","阿姆斯特丹史基浦","法兰克福","伊斯坦布尔阿塔图尔克", "马德里","巴塞罗那","伦敦盖特威克","慕尼黑","罗马菲乌米奇诺","莫斯科谢列梅捷沃","巴黎奥利", "伊斯坦布尔萨比哈","哥本哈根","莫斯科多莫杰多沃"], "amount2015": [7498,6577,5828,6103,6133,4682,3971,4026,4098,4046,3128,2966,2811,2661,3050], "amount2016": [7561,6593,6363,6079,6011,5042,4415,4311,4227,4174,3366,3124,2958,2904,2850], "pct":[0.9,0.3,9.2,-0.4,-2.0,7.7,11.2,7.1,3.2,3.2,7.6,5.3,5.2,9.1,-6.6] }; option = { grid: { top: '25%', bottom: '25%' }, xAxis: { type: 'category', axisTick: {show: false}, data: data.airport, axisLabel: {interval: 0, rotate: 45, fontSize: 14} }, yAxis: [{ name: '万人次', nameTextStyle: {fontSize: 14} },{ name: '增幅', nameTextStyle: {fontSize: 14}, min: -15, max: 15, splitLine: {show: false} }], legend: { show: true, textStyle: {fontSize: 14}, top: '20%' }, title: { text: '欧洲机场旅客吞吐量', left: 'center', top: '15%', textStyle: {fontSize: 24} }, backgroundColor: 'rgba(245,232,200,0.1)', series: [ { name: '2015年', type: 'bar', data: data.amount2015, label: {show: false}, itemStyle: { normal: { color: new echarts.graphic.LinearGradient( 0, 0, 0, 1, [ {offset: 0, color: '#f48265'}, {offset: 1, color: '#d01F39'} ] ) } } },{ name: '2016年', type: 'bar', barGap: '0%', data: data.amount2016, label: {show: false}, itemStyle: { normal: { color: new echarts.graphic.LinearGradient( 0, 0, 0, 1, [ {offset: 0, color: '#61a0a8'}, {offset: 1, color: '#418088'} ] ) } } },{ name: '增幅', type: 'line', data: data.pct, yAxisIndex: 1, label: {show: false}, symbol: 'none', itemStyle: {color: '#2f4554'}, lineStyle:{width: 4, color: '#2f4554'} }] };