Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
1d1d1e2d
I
incubator-echarts
项目概览
x649585723
/
incubator-echarts
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-echarts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1d1d1e2d
编写于
4月 18, 2018
作者:
S
sushuang
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://github.com/apache/incubator-echarts
上级
ed636dd9
ea62bae2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
849 addition
and
0 deletion
+849
-0
test/sankey-jume.html
test/sankey-jume.html
+849
-0
未找到文件。
test/sankey-jume.html
0 → 100644
浏览文件 @
1d1d1e2d
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<script
src=
"lib/esl.js"
></script>
<script
src=
"lib/config.js"
></script>
<script
src=
"lib/jquery.min.js"
></script>
</head>
<body>
<style>
html
,
body
,
#main
{
width
:
100%
;
height
:
90%
;
/*border: 1px solid #000;*/
}
</style>
<div
id=
"main"
><div>
<script>
require
([
'
echarts
'
// 'echarts/chart/sankey',
// 'echarts/component/tooltip'
],
function
(
echarts
)
{
var
chart
=
echarts
.
init
(
document
.
getElementById
(
'
main
'
),
null
,
{
});
window
.
onresize
=
function
()
{
chart
.
resize
();
};
chart
.
on
(
'
click
'
,
function
(
params
)
{
console
.
log
(
params
,
params
.
data
);
});
var
option
=
{
"
backgroundColor
"
:
"
#404a59
"
,
"
animation
"
:
false
,
"
tooltip
"
:
{
"
showContent
"
:
true
,
"
borderRadius
"
:
0
,
"
padding
"
:
4.645544922419401
,
"
textStyle
"
:
{
"
fontSize
"
:
"
10
"
,
"
fontWeight
"
:
"
normal
"
}
},
"
legend
"
:
{
"
show
"
:
true
,
"
x
"
:
"
center
"
,
"
y
"
:
"
bottom
"
,
"
padding
"
:
6.194059896559202
,
"
itemGap
"
:
6.194059896559202
,
"
data
"
:
[
{
"
name
"
:
"
Number of tourists
"
,
"
icon
"
:
"
circle
"
},
{
"
name
"
:
"
Overnights
"
,
"
icon
"
:
"
circle
"
}
],
"
itemWidth
"
:
14.6455449224194
,
"
itemHeight
"
:
13.097029948279602
,
"
orient
"
:
"
horizontal
"
,
"
textStyle
"
:
{
"
fontSize
"
:
"
12
"
,
"
fontWeight
"
:
"
normal
"
},
"
selectedMode
"
:
"
single
"
},
"
title
"
:
{
"
text
"
:
"
Foreign tourist inflow – Q1 2016
"
,
"
subtext
"
:
""
,
"
sublink
"
:
"
https://pioneers.io/festival2016/pioneers500/top70/
"
,
"
x
"
:
"
center
"
,
"
y
"
:
"
top
"
,
"
textStyle
"
:
{
"
fontSize
"
:
"
24
"
,
"
fontWeight
"
:
"
normal
"
},
"
subtextStyle
"
:
{
"
fontSize
"
:
13
,
"
fontWeight
"
:
"
bold
"
}
},
"
series
"
:
[
{
"
name
"
:
"
Number of tourists
"
,
"
type
"
:
"
sankey
"
,
"
top
"
:
100
,
"
left
"
:
20
,
"
width
"
:
"
30%
"
,
"
bottom
"
:
50
,
"
zlevel
"
:
1
,
"
nodeWidth
"
:
25
,
"
nodeGap
"
:
11
,
"
data
"
:
[
{
"
name
"
:
"
Hungary
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
1850000
"
},
{
"
name
"
:
"
Romania
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
1850000
"
},
{
"
name
"
:
"
Macedonia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
1167000
"
},
{
"
name
"
:
"
Bulgaria
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
1167000
"
},
{
"
name
"
:
"
Slovenia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
692000
"
},
{
"
name
"
:
"
Italy
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
692000
"
},
{
"
name
"
:
"
Austria
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
692000
"
},
{
"
name
"
:
"
Croatia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
519868
"
},
{
"
name
"
:
"
Germany
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
519868
"
},
{
"
name
"
:
"
Bulgaria
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
212476
"
},
{
"
name
"
:
"
Serbia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
212476
"
},
{
"
name
"
:
"
Bosnia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
212476
"
},
{
"
name
"
:
"
Croatia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
212476
"
},
{
"
name
"
:
"
Bosnia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
172085
"
},
{
"
name
"
:
"
Macedonia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
115222
"
},
{
"
name
"
:
"
Greece
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
115222
"
},
{
"
name
"
:
"
Turkey
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
100000
"
},
{
"
name
"
:
"
Albania
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
100000
"
},
{
"
name
"
:
"
Russia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
54292
"
},
{
"
name
"
:
"
Montenegro
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
54292
"
},
{
"
name
"
:
"
Serbia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
54292
"
},
{
"
name
"
:
"
Ukraine
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
35709
"
},
{
"
name
"
:
"
Romania
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
35709
"
},
{
"
name
"
:
"
Moldova
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
35709
"
}
],
"
links
"
:
[
{
"
source
"
:
"
Ukraine
"
,
"
target
"
:
"
Moldova
"
,
"
value
"
:
"
35709
"
},
{
"
source
"
:
"
Russia
"
,
"
target
"
:
"
Moldova
"
,
"
value
"
:
"
35709
"
},
{
"
source
"
:
"
Romania
"
,
"
target
"
:
"
Moldova
"
,
"
value
"
:
"
35709
"
},
{
"
source
"
:
"
Serbia
"
,
"
target
"
:
"
Montenegro
"
,
"
value
"
:
"
54292
"
},
{
"
source
"
:
"
Russia
"
,
"
target
"
:
"
Montenegro
"
,
"
value
"
:
"
54292
"
},
{
"
source
"
:
"
Turkey
"
,
"
target
"
:
"
Albania
"
,
"
value
"
:
"
100000
"
},
{
"
source
"
:
"
Greece
"
,
"
target
"
:
"
Macedonia
"
,
"
value
"
:
"
115222
"
},
{
"
source
"
:
"
Serbia
"
,
"
target
"
:
"
Macedonia
"
,
"
value
"
:
"
115222
"
},
{
"
source
"
:
"
Turkey
"
,
"
target
"
:
"
Macedonia
"
,
"
value
"
:
"
115222
"
},
{
"
source
"
:
"
Turkey
"
,
"
target
"
:
"
Bosnia
"
,
"
value
"
:
"
172085
"
},
{
"
source
"
:
"
Croatia
"
,
"
target
"
:
"
Bosnia
"
,
"
value
"
:
"
172085
"
},
{
"
source
"
:
"
Serbia
"
,
"
target
"
:
"
Bosnia
"
,
"
value
"
:
"
172085
"
},
{
"
source
"
:
"
Bulgaria
"
,
"
target
"
:
"
Serbia
"
,
"
value
"
:
"
212476
"
},
{
"
source
"
:
"
Croatia
"
,
"
target
"
:
"
Serbia
"
,
"
value
"
:
"
212476
"
},
{
"
source
"
:
"
Bosnia
"
,
"
target
"
:
"
Serbia
"
,
"
value
"
:
"
212476
"
},
{
"
source
"
:
"
Austria
"
,
"
target
"
:
"
Croatia
"
,
"
value
"
:
"
519868
"
},
{
"
source
"
:
"
Germany
"
,
"
target
"
:
"
Croatia
"
,
"
value
"
:
"
519868
"
},
{
"
source
"
:
"
Italy
"
,
"
target
"
:
"
Slovenia
"
,
"
value
"
:
"
692000
"
},
{
"
source
"
:
"
Austria
"
,
"
target
"
:
"
Slovenia
"
,
"
value
"
:
"
692000
"
},
{
"
source
"
:
"
Macedonia
"
,
"
target
"
:
"
Bulgaria
"
,
"
value
"
:
"
1167000
"
},
{
"
source
"
:
"
Romania
"
,
"
target
"
:
"
Bulgaria
"
,
"
value
"
:
"
1167000
"
},
{
"
source
"
:
"
Turkey
"
,
"
target
"
:
"
Bulgaria
"
,
"
value
"
:
"
1167000
"
},
{
"
source
"
:
"
Bulgaria
"
,
"
target
"
:
"
Romania
"
,
"
value
"
:
"
1850000
"
},
{
"
source
"
:
"
Hungary
"
,
"
target
"
:
"
Romania
"
,
"
value
"
:
"
1850000
"
}
],
"
itemStyle
"
:
{
"
normal
"
:
{
"
color
"
:
"
#25b7bc
"
,
"
borderWidth
"
:
0
}
},
"
label
"
:
{
"
normal
"
:
{
"
textStyle
"
:
{
"
color
"
:
"
white
"
}
}
},
"
lineStyle
"
:
{
"
normal
"
:
{
"
curveness
"
:
0.5
,
"
opacity
"
:
0.7
,
"
color
"
:
"
rgba(255,255,255,0.2)
"
}
},
"
tooltip
"
:
{
"
showContent
"
:
true
,
"
borderRadius
"
:
0
,
"
padding
"
:
4.645544922419401
,
"
textStyle
"
:
{
"
fontSize
"
:
"
10
"
,
"
fontWeight
"
:
"
normal
"
}
}
},
{
"
name
"
:
"
Overnights
"
,
"
type
"
:
"
sankey
"
,
"
top
"
:
100
,
"
left
"
:
20
,
"
width
"
:
"
30%
"
,
"
zlevel
"
:
2
,
"
bottom
"
:
50
,
"
nodeWidth
"
:
25
,
"
nodeGap
"
:
11
,
"
data
"
:
[
{
"
name
"
:
"
Hungary
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
3620000
"
},
{
"
name
"
:
"
Romania
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
3620000
"
},
{
"
name
"
:
"
Moldova
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
1937000
"
},
{
"
name
"
:
"
Romania
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
1937000
"
},
{
"
name
"
:
"
Ukraine
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
1937000
"
},
{
"
name
"
:
"
Austria
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
1855000
"
},
{
"
name
"
:
"
Italy
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
1855000
"
},
{
"
name
"
:
"
Slovenia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
1855000
"
},
{
"
name
"
:
"
Germany
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
1200000
"
},
{
"
name
"
:
"
Croatia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
1200000
"
},
{
"
name
"
:
"
Bulgaria
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
996695
"
},
{
"
name
"
:
"
Macedonia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
996695
"
},
{
"
name
"
:
"
Croatia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
528030
"
},
{
"
name
"
:
"
Bulgaria
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
528030
"
},
{
"
name
"
:
"
Serbia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
528030
"
},
{
"
name
"
:
"
Bosnia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
528030
"
},
{
"
name
"
:
"
Bosnia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
366133
"
},
{
"
name
"
:
"
Macedonia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
245618
"
},
{
"
name
"
:
"
Greece
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
245618
"
},
{
"
name
"
:
"
Russia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
209911
"
},
{
"
name
"
:
"
Montenegro
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
209911
"
},
{
"
name
"
:
"
Serbia
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
209911
"
},
{
"
name
"
:
"
Turkey
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
right
"
}
},
"
value
"
:
"
100000
"
},
{
"
name
"
:
"
Albania
"
,
"
label
"
:
{
"
normal
"
:
{
"
position
"
:
"
left
"
}
},
"
value
"
:
"
100000
"
}
],
"
links
"
:
[
{
"
source
"
:
"
Turkey
"
,
"
target
"
:
"
Albania
"
,
"
value
"
:
"
100000
"
},
{
"
source
"
:
"
Serbia
"
,
"
target
"
:
"
Montenegro
"
,
"
value
"
:
"
209911
"
},
{
"
source
"
:
"
Russia
"
,
"
target
"
:
"
Montenegro
"
,
"
value
"
:
"
209911
"
},
{
"
source
"
:
"
Turkey
"
,
"
target
"
:
"
Macedonia
"
,
"
value
"
:
"
245618
"
},
{
"
source
"
:
"
Serbia
"
,
"
target
"
:
"
Macedonia
"
,
"
value
"
:
"
245618
"
},
{
"
source
"
:
"
Greece
"
,
"
target
"
:
"
Macedonia
"
,
"
value
"
:
"
245618
"
},
{
"
source
"
:
"
Croatia
"
,
"
target
"
:
"
Bosnia
"
,
"
value
"
:
"
366133
"
},
{
"
source
"
:
"
Turkey
"
,
"
target
"
:
"
Bosnia
"
,
"
value
"
:
"
366133
"
},
{
"
source
"
:
"
Serbia
"
,
"
target
"
:
"
Bosnia
"
,
"
value
"
:
"
366133
"
},
{
"
source
"
:
"
Bulgaria
"
,
"
target
"
:
"
Serbia
"
,
"
value
"
:
"
528030
"
},
{
"
source
"
:
"
Bosnia
"
,
"
target
"
:
"
Serbia
"
,
"
value
"
:
"
528030
"
},
{
"
source
"
:
"
Croatia
"
,
"
target
"
:
"
Serbia
"
,
"
value
"
:
"
528030
"
},
{
"
source
"
:
"
Turkey
"
,
"
target
"
:
"
Bulgaria
"
,
"
value
"
:
"
996695
"
},
{
"
source
"
:
"
Macedonia
"
,
"
target
"
:
"
Bulgaria
"
,
"
value
"
:
"
996695
"
},
{
"
source
"
:
"
Romania
"
,
"
target
"
:
"
Bulgaria
"
,
"
value
"
:
"
996695
"
},
{
"
source
"
:
"
Austria
"
,
"
target
"
:
"
Croatia
"
,
"
value
"
:
"
1200000
"
},
{
"
source
"
:
"
Germany
"
,
"
target
"
:
"
Croatia
"
,
"
value
"
:
"
1200000
"
},
{
"
source
"
:
"
Austria
"
,
"
target
"
:
"
Slovenia
"
,
"
value
"
:
"
1855000
"
},
{
"
source
"
:
"
Italy
"
,
"
target
"
:
"
Slovenia
"
,
"
value
"
:
"
1855000
"
},
{
"
source
"
:
"
Russia
"
,
"
target
"
:
"
Moldova
"
,
"
value
"
:
"
1937000
"
},
{
"
source
"
:
"
Romania
"
,
"
target
"
:
"
Moldova
"
,
"
value
"
:
"
1937000
"
},
{
"
source
"
:
"
Ukraine
"
,
"
target
"
:
"
Moldova
"
,
"
value
"
:
"
1937000
"
},
{
"
source
"
:
"
Bulgaria
"
,
"
target
"
:
"
Romania
"
,
"
value
"
:
"
3620000
"
},
{
"
source
"
:
"
Hungary
"
,
"
target
"
:
"
Romania
"
,
"
value
"
:
"
3620000
"
}
],
"
itemStyle
"
:
{
"
normal
"
:
{
"
color
"
:
"
#ff5d60
"
,
"
borderWidth
"
:
0
}
},
"
label
"
:
{
"
normal
"
:
{
"
textStyle
"
:
{
"
color
"
:
"
white
"
}
}
},
"
lineStyle
"
:
{
"
normal
"
:
{
"
curveness
"
:
0.5
,
"
opacity
"
:
0.7
,
"
color
"
:
"
rgba(255,255,255,0.2)
"
}
}
}
]
}
chart
.
setOption
(
option
);
});
</script>
</body>
</html>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录