-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex2.html
162 lines (151 loc) · 4.64 KB
/
index2.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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>记账本</title>
<script src="js/echarts-5.0.2.min.js"></script>
<script src="js/jquery.min.js"></script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<nav>
<div class="menu-btn">
<div class="menu">MENU</div>
<div class="line line--1"></div>
<div class="line line--2"></div>
<div class="line line--3"></div>
</div>
<div class="nav-links">
<a href="" class="link">Home</a>
<a href="" class="link">title</a>
<a href="" class="link">title</a>
<a href="" class="link">title</a>
</div>
</nav>
<div class="inform">
<div class="month">
<select class="monthselect">
<option class="monthoption">2021년01월</option>
<option class="monthoption">2021년02월</option>
<option class="monthoption">2021년03월</option>
<option class="monthoption">2021년04월</option>
</select>
</div>
<div class="graphicalbutton">
<div class="brokenline"><a href="" class="logofont">그래프</a>
</div>
<div class="circular"><a href="" class="logofont">원형</a>
</div>
</div>
<div class="detailed">
<div class="graphical" id="graphical"></div>
<a href="detailed.html">
<div class="databar">
<div class="logo"><img src="./img/gw.png" height="80px" width="80px"></div>
<div class="databarbig">
<div class="databarmini">
<div class="name">쇼핑</div>
<div class="proportion">40%</div>
<div class="data">40000원</div>
</div>
<div class="dataprogressbar">
<div class="dataprogressdetailedbar detailedbarcolor1"></div>
</div>
</div>
</div>
</a>
<a href="detailed.html">
<div class="databar">
<div class="logo"><img src="./img/lc.png" height="80px" width="80px"></div>
<div class="databarbig">
<div class="databarmini">
<div class="name">재테그</div>
<div class="proportion">30%</div>
<div class="data">30000원</div>
</div>
<div class="dataprogressbar">
<div class="dataprogressdetailedbar detailedbarcolor2"></div>
</div>
</div>
</div>
</a>
<a href="detailed.html">
<div class="databar">
<div class="logo"><img src="./img/ly.png" height="80px" width="80px"></div>
<div class="databarbig">
<div class="databarmini">
<div class="name">여행</div>
<div class="proportion">20%</div>
<div class="data">20000원</div>
</div>
<div class="dataprogressbar">
<div class="dataprogressdetailedbar detailedbarcolor3"></div>
</div>
</div>
</div>
</a>
<a href="detailed.html">
<div class="databar">
<div class="logo"><img src="./img/qc.png" height="80px" width="80px"></div>
<div class="databarbig">
<div class="databarmini">
<div class="name">교통</div>
<div class="proportion">10%</div>
<div class="data">10000원</div>
</div>
<div class="dataprogressbar">
<div class="dataprogressdetailedbar detailedbarcolor4"></div>
</div>
</div>
</div>
</a>
</div>
</div>
<script type="text/javascript">
var myChart = echarts.init(document.getElementById('graphical'));
option = {
color:['#37a7e1','#dacb64', '#10832e', '#dd7bac'],
//提示框组件,鼠标移动上去显示的提示内容
tooltip: {
trigger: 'item',
fontSize: 35,
formatter: "{a} <br/>{b}: {c} ({d}%)"//模板变量有 {a}、{b}、{c}、{d},分别表示系列名,数据名,数据值,百分比。
},
series: [
{
name:'명세',
type:'pie',
//饼状图
// radius: ['50%', '70%'],
avoidLabelOverlap: false,
//标签
label: {
position: 'inner',
fontSize: 35,
normal: {
show: true,
position: 'inside',
formatter: '{b} {d}%',//模板变量有 {a}、{b}、{c}、{d},分别表示系列名,数据名,数据值,百分比。{d}数据会根据value值计算百分比
textStyle : {
align : 'center',
baseline : 'middle',
fontFamily : '微软雅黑',
fontSize : 35,
fontWeight : 'bolder'
}
},
},
data:[
{value:40000, name:'쇼핑'},
{value:30000, name:'재테그'},
{value:20000, name:'여행'},
{value:10000, name:'교통'}
]
}
]
};
option && myChart.setOption(option);
</script>
<script src="js/index.js"></script>
</body>
</html>