-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
175 lines (170 loc) · 5.67 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ECharts</title>
<!-- 引入 echarts.js -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts.min.js"></script>
</head>
<body>
<!-- 为ECharts准备一个具备大小(宽高)的Dom -->
<div id="main" style="width: 800px;height:900px;"></div>
<script type="module">
var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
var option;
var node = [
{
name: 'All scanner 2020'
},
{
name: "Dec scanner"
},
{
name: "Jan-Nov scanner"
},
{
name: "Jan & Feb with Purchase and ARPU > LH all buyers 1215 ARPU (DJF CRM ARPU)"
},
{
name:"Jan & Feb with Purchase and ARPU < LH all buyers ARPU (DJF CRM ARPU)"
},
{
name:"Jan & Feb without Purchase"
},
{
name:"Dec & Jan & Feb with purchase and ARPU > LH all buyers 1215 ARPU (DJF CRM ARPU)"
},
{
name:"Dec & Jan & Feb with purchase and ARPU < LH all buyers 1215 ARPU (DJF CRM ARPU)"
},
{
name:"Dec & Jan & Feb without Purchase - P6M scan"
},
{
name:"higher ARPU group"
},
{
name:"ARPU Uplift Group"
},
{
name:"High win back"
},
{
name:"mid win back"
},
{
name:"group1"
},{
name:"group2"
},{
name:"group3"
},{
name:"group4"
}
]
option = {
title:{
text:"cohort diagram"
},
tooltip: {
trigger: 'item',
triggerOn: 'mousemove'
},
series: {
type: 'sankey',
layout: 'none',
emphasis: {
focus: 'adjacency'
},
data: node,
links: [{
source: 'All scanner 2020',
target: 'Dec scanner',
value: 51266
},
{
source: 'Dec scanner',
target: 'Jan & Feb with Purchase and ARPU > LH all buyers 1215 ARPU (DJF CRM ARPU)',
value: 6726
}, {
source: 'Dec scanner',
target: 'Jan & Feb with Purchase and ARPU < LH all buyers ARPU (DJF CRM ARPU)',
value: 5744
}, {
source: 'Dec scanner',
target: 'Jan & Feb without Purchase',
value: 38796
},
{
source: 'All scanner 2020',
target: 'Jan-Nov scanner',
value: 144210
}, {
source: 'Jan-Nov scanner',
target: 'Dec & Jan & Feb with purchase and ARPU > LH all buyers 1215 ARPU (DJF CRM ARPU)',
value: 19025
},{
source:"Jan-Nov scanner",
target:"Dec & Jan & Feb with purchase and ARPU < LH all buyers 1215 ARPU (DJF CRM ARPU)",
value:13448
},{
source:"Jan-Nov scanner",
target:"Dec & Jan & Feb without Purchase - P6M scan",
value:111737
},{
source:'Jan & Feb with Purchase and ARPU > LH all buyers 1215 ARPU (DJF CRM ARPU)',
target:'higher ARPU group',
value:6726
},{
source:'Dec & Jan & Feb with purchase and ARPU > LH all buyers 1215 ARPU (DJF CRM ARPU)',
target:'higher ARPU group',
value:19025
},{
source:'Jan & Feb with Purchase and ARPU < LH all buyers ARPU (DJF CRM ARPU)',
target:"ARPU Uplift Group",
value:5744
},{
source:"Dec & Jan & Feb with purchase and ARPU < LH all buyers 1215 ARPU (DJF CRM ARPU)",
target:"ARPU Uplift Group",
value:13448
},{
source:'Jan & Feb without Purchase',
target:"High win back",
value:38796
},{
source:"Dec & Jan & Feb without Purchase - P6M scan",
target:"mid win back",
value:111737
},{
source:'higher ARPU group',
target:"group1",
value:15000
},
{
source:"ARPU Uplift Group",
target:"group2",
value:15000
},{
source:"High win back",
target:"group3",
value:15000
},{
source:"mid win back",
target:'group4',
value:15000
}
],
emphasis: {
focus: 'adjacency'
},
lineStyle: {
color: 'gradient',
curveness: 0.5
}
}
};
option && myChart.setOption(option);
</script>
</body>
</html>