-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
182 lines (181 loc) · 7.12 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
176
177
178
179
180
181
182
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<title>Tesla Twitter Sentiment</title>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
/>
<link rel="stylesheet" href="Visualization/css/style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="https://cdn.anychart.com/releases/8.10.0/js/anychart-base.min.js" type="text/javascript"></script>
</head>
<body style="background-color: #D7DCDD;">
<div class="container">
<div class="row">
<div class="col-sm-12 jumbotron text-center" style="color: #ffffff;">
<h1 class="display-4">Tesla Twitter Sentiment Dashboard</h1>
<p>Use the interactive charts below to explore the sentiment data</p>
</div>
</div>
<!-- weeks data starts here -->
<div class="row">
<div class="col-sm-12 text-center" style="color: #ffffff; background-color: #B73038;">
<h1 class="display-4"> <img src="Visualization/images/tesla.svg" class="logo" with="40" height="40"> Weekly Data Dashboard</h1>
</div>
<!-- this is the row for data overview -->
<div class="row">
<div class="col-sm-3 text-center">
<p> </p>
<div class="weekdata" style="background-color: #B73038; color: #ffffff;">
<p> </p>
<h4>Pick A Week</h4>
<!-- <select id="selWeeks"></select> -->
<select id="selWeeks" onchange="weekChanged(this.value)" style="background-color:#D7DCDD; color: black;"></select>
<p> </p>
</div>
</div>
<!-- insert 3 more columns here -->
<div class="col-sm-3">
<p> </p>
<div class="col d-flex align-items-start text-center" style="background-color: #b9bec1; height: 200px">
<div>
<p> </p>
<h3>Date Range</h3>
<h2><i class="bi bi-calendar2-week"></i> </h2>
<div id="weekly-data-range"></div>
<p> </p>
</div>
</div>
</div>
<div class="col-sm-3">
<p> </p>
<div class="col d-flex align-items-start text-center" style="background-color: #b9bec1; height: 200px">
<div>
<p> </p>
<h3>Total Tweets</h3>
<h2><i class="bi bi-twitter"></i></h2>
<div id="total-tweets-occurred"></div>
<p> </p>
</div>
</div>
</div>
<div class="col-sm-3">
<p> </p>
<div class="col d-flex align-items-start text-center" style="background-color: #b9bec1; height: 200px">
<div>
<p> </p>
<h3> Average Per Day</h3>
<h2><i class="bi bi-bar-chart-line"></i></h2>
<div id="average-tweets"></div>
<p> </p>
</div>
</div>
</div>
</div>
<!-- this is row for the bar chart-->
<div class="row">
<div class="col-sm-12 text-center">
<div id="weekly-bar"></div>
</div>
</div>
<!-- weekday data starts here-->
<div class="row">
<div class="col-sm-12 text-center" style="color: #ffffff; background-color: #B73038;">
<h1 class="display-4"> <img src="Visualization/images/tesla.svg" class="logo" with="40" height="40"> Weekday Data Dashboard</h1>
</div>
<!-- this is the row for filter and data overview -->
<div class="row">
<div class="col-sm-3 text-center">
<p> </p>
<div class="well" style="background-color: #B73038; color: #ffffff;">
<h4>Pick A Weekday</h4>
<!-- <select id="selDataset"></select> -->
<select id="selDataset" onchange="optionChanged(this.value)" style="background-color:#D7DCDD; color: black;"></select>
</div>
</div>
<!-- insert 3 more columns here -->
<div class="col-sm-3">
<p> </p>
<div class="col d-flex align-items-start">
<div>
<h3> <i class="bi bi-bar-chart"></i> Data Overview </h3>
<p> </p>
<div id="all-tweets-occured"></div>
</div>
</div>
</div>
<div class="col-sm-3">
<p> </p>
<div class="col d-flex align-items-start">
<div>
<h3><i class="bi bi-calendar-week"></i> Number of Weeks</h3>
<p> </p>
<!-- <div id="weekInfo" class="weekday-body"></div> -->
<div id="data-date-info"></div>
</div>
</div>
</div>
<div class="col-sm-3">
<p> </p>
<div class="col d-flex align-items-start">
<div>
<h3><i class="bi bi-people"></i> Sentiment Percentage</h3>
<div id="weekday-count" class="panel-body"></div>
</div>
</div>
</div>
</div>
<!-- this is row for five positive tweets and positive rate gauge chart-->
<div class="row">
<div class="col-sm-3">
<div class="panel panel-primary" style="background-color: #8B9094; color: #ffffff; border: #4A4B4C;">
<div class="panel-heading" style="background-color: #B73038;">
<h3 class="panel-title text-center" style="color: #ffffff;">Positive Tweets</h3>
</div>
<div id="positweets" class="panel-body"></div>
</div>
</div>
<div class="col-sm-1"></div>
<div class="col-sm-8 text-center">
<div id="gauge"></div>
</div>
</div>
<!-- this is the row for five negative tweets and word bar and word cloud -->
<div class="row">
<div class="col-sm-3">
<div class="panel panel-primary" style="background-color: #8B9094; color: #ffffff; border: #4A4B4C;">
<div class="panel-heading" style="background-color: #B73038;">
<h3 class="panel-title text-center" style="color: #ffffff;">Negative Tweets</h3>
</div>
<div id="negatweets" class="panel-body"></div>
</div>
</div>
<div class="col-sm-4">
<div id="word-bar" style="position: absolute; top:-23px; width: 450px; height: 530px;"></div>
</div>
<div class="col-sm-4">
<div id="cloud" style="width: 500px; height:480px;"></div>
</div>
</div>
<!-- this is the row for double line chart -->
<div class="row">
<div class="col-sm-12 text-center">
<div id="day-double-line"></div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.5.0/d3.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<!-- <script src="hourly_sample.json"></script> -->
<script src="Visualization/js/weekly.js"></script>
<script src="Visualization/js/weekday.js"></script>
<script src="https://cdn.anychart.com/releases/v8/js/anychart-base.min.js"></script>
<script src="https://cdn.anychart.com/releases/v8/js/anychart-tag-cloud.min.js"></script>
</body>
</html>