forked from xingorg1/xingorg1WEB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path完结:百分比显示-400接起率线图.html
108 lines (108 loc) · 3.19 KB
/
完结:百分比显示-400接起率线图.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
<!DOCTYPE html>
<html style="height: 100%">
<head>
<meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
<div id="container" style="height: 100%"></div>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-gl/echarts-gl.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-stat/ecStat.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/dataTool.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/china.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/world.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=ZUONbpqGBsYGXNIYHicvbAbM"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/bmap.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/simplex.js"></script>
<script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};
option = null;
option = {
color: 'red',
title: {
text: 'dd',
left: 'center',
textStyle: {
fontSize: 16,
color: '#333B48',
fontFamily: '微软雅黑',
fontWeight: 'normal'
}
},
legend: {
textStyle:{
fontSize: 12,
color: '#5E6E87',
fontFamily: '微软雅黑',
fontWeight: 'normal'
},
data: ['400成功接起率'],
z: 3,
top:'30'
},
tooltip : {
trigger: 'axis',
formatter: function(params){
return params[0].name +"<br/> 400成功接起率: "+ parseInt((params[0].value)*100) +"%"
},
axisPointer : {
type : 'line'
}
},
grid: {
top: 85,
right: 10,
bottom: 30,
left: 20,
containLabel: true
},
xAxis: {
type : 'category',
data : [1,2,'2018年3月',4,5,6,7],
axisLabel: {
fontSize: 10,
color: 'red',
interval: 0,
rotate: 0,
},
axisTick: {
alignWithLabel: true
},
axisLine: {//轴线样式
show: true,
lineStyle: {
color: 'red'
}
}
},
yAxis: {
type: 'value'
},
series: [{
name: '400成功接起率',
data: [0.33,0.35,0.4567,0.658,0.567,0.473,0.45784],
type: 'line',
cursor: 'auto',
smooth: true,
symbolSize: 3.5,
label: {
normal: {
formatter: function(params){
return parseInt((params.value)*100)+'%';
},
position: 'top',
show: true,
color: '#333'
}
}
}]
};
;
if (option && typeof option === "object") {
myChart.setOption(option, true);
}
</script>
</body>
</html>