-
Notifications
You must be signed in to change notification settings - Fork 0
/
negativeReview.html
190 lines (186 loc) · 9.11 KB
/
negativeReview.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>negativeReview</title>
<link rel="stylesheet" href="negativeReview.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.8.0/dist/chart.min.js"></script>
</head>
<body>
<div class="wrapper">
<!--메뉴 바-->
<div class="sidebar">
<div class="logo">
<img src="Group 42.png" class="logoDesign">
<div class="logoName">Review Manager</div>
</div>
<ul>
<li>
<a href="index.html" class="active">
<span class="icon"><i class="fa-solid fa-house fa-3x"></i></span>
<span class="item">홈</span>
</a>
</li>
<li>
<a href="totalRw.html">
<span class="icon"><i class="fa-solid fa-chart-line fa-3x"></i></span>
<span class="item">리뷰 모아보기</v>
</a>
</li>
<li>
<a href="#">
<span class="icon"><i class="fa-solid fa-user-large fa-3x"></i></span>
<span class="item">마이페이지</span>
</a>
</li>
<li>
<a href="#" class="logout">
<span class="icon"><i class="fa-solid fa-user-large fa-3x"></i></span>
<span class="item">로그아웃</span>
</a>
</li>
</ul>
</div>
</div>
<div class="main">
<div class="mainScreen">
<!--위치-->
<div class="place">
<img src="person.png" class="person">
<span class="placeName">배스킨라빈스 길음뉴타운점</span>
</div>
<!--블록-->
<div class="block">
<!--제목-->
<div class="title">부정 리뷰</div>
<div class="leftBlock">
<!--총평-->
<div class="review">
<div class="totalRw">
청결 n% 회전율 %로 ~부분에 대한 불편 사항이 다수 집계됨
<br>~~~~~~~
<br>~~~~~~~
</div>
</div>
<!--차트 내용-->
<div class="chartBox">
<div class="months">
<img src="Vector left.png" class="vector">
<span class="month">6월</span>
<img src="Vector right.png" class="vector">
</div>
<!--라인 그래프-->
<div class="lineChart">
<canvas id="line"></canvas>
<script>
var data = {
labels: ['1주차', '2주차', '3주차', '4주차', '7월 1주차', '7월 2주차'],
datasets: [{
data: [76, 77, 50, 77, 90, 83],
backgroundColor: [
'rgba(255, 255, 255, 1)',
'rgba(255, 255, 255, 1)',
'rgba(255, 255, 255, 1)',
'rgba(255, 255, 255, 1)',
'rgba(255, 255, 255, 1)'
],
borderColor: '#0D09DF',
borderWidth: '8',
tension: 0, //해도 되고 안해도 되고
pointBorderColor: '#0D09DF',
pointRadius: 5,
pointHoverRadius: 10,
pointHitRadius: 30,
pointBorderWidth: 1,
}],
};
var ctx2 = document.getElementById("line").getContext('2d');
var myChart = new Chart(ctx2, {
type: 'line',
data: data,
options: {
plugins: {
tooltips: {
enabled: false
},
legend: {
display: false,
}
},
scales: {
//스케일 커스텀
xAxes: {
ticks: {
fontSize: 23
},
grid: {
display: true, //x격자선 보이게
borderDash: [5, 5]
},
},
yAxes: {
ticks: {
display: false, //y축 텍스트 삭제
},
grid: {
display: false, //y격자선 안보이게
},
suggestedMin: 0,
suggestedMax: 100,
}
}
},
});
</script>
</div>
</div>
</div>
<!--도넛그래프-->
<div class="side">
<!--도넛 그래프-->
<canvas id="doughnut"></canvas>
<script>
var data = {
labels: ['청결 문제', '서비스 문제', '회전율 문제', '맛 문제'],
datasets: [{
data: [25, 15, 20, 10],
backgroundColor: [
'rgba(255, 198, 157, 1)',
'rgba(255, 52, 24, 1)',
'rgba(255, 95, 59, 1)',
'rgba(255, 162, 109, 1)'
]
}]
};
var ctx2 = document.getElementById("doughnut").getContext('2d');
var myChart = new Chart(ctx2, {
type: 'doughnut',
data: data,
options: {
plugins: {
legend: {
display: true,
position:'bottom',
labels: {
//boxWidth: 10,
//안먹음
textAlign: 'left',
usePointStyle:true,
pointStyle: 'circle'
}
}
},
responsive: false // 얘가 false여야 크기 조정 가능
},
});
</script>
</div>
</div>
</div>
</div>
</body>
</html>