-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (92 loc) · 2.24 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Narrative Visualization Project</title>
<script src="https://d3js.org/d3.v6.min.js"></script>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
#visualization {
width: 80%;
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 30px;
}
.chart-container {
display: flex;
gap: 10px;
width: 100%;
margin-bottom: 25px;
}
.chart {
width: 50%;
}
.axis text {
font-size: 10px;
}
.tooltip {
position: absolute;
background: rgba(0, 0, 0, 0.8);
color: #f1f1f1;
padding: 8px;
border-radius: 8px;
pointer-events: none;
opacity: 0;
transition: opacity 0.4s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.annotation {
margin-top: 15px;
font-size: 16px;
text-align: center;
width: 85%;
line-height: 1.5;
color: #333;
}
.title {
font-size: 26px;
font-weight: 700;
margin-bottom: 25px;
color: #0056b3;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.button {
margin-top: 25px;
padding: 12px 24px;
font-size: 18px;
cursor: pointer;
border: none;
background-color: #28a745;
color: #ffffff;
border-radius: 6px;
transition: background-color 0.3s ease;
}
.button:hover {
background-color: #218838;
}
.button-container {
display: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}
</style>
</head>
<body>
<div id="introduction">
<div class="title">Narrative Visualization Project: Car MPG</div>
<div class="button-container">
<a href="city.html"><button class="button">City MPG Comparison</button></a>
<a href="highway.html"><button class="button">Highway MPG Comparison</button></a>
<a href="ratio.html"><button class="button">City/Highway MPG Ratio</button></a>
</div>
</div>
</body>
</html>