generated from DS4200-S23-Class/hw-03
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
157 lines (133 loc) · 7.02 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
<!DOCTYPE html>
<html>
<head>
<link rel = "stylesheet" href = "style.css">
<meta charset=utf-8/>
<title>hw-03</title>
</head>
<body>
<!-- add centered header-->
<h1>hw-03: Interactive Webpage, and Marks & Channels</h1>
<!-- add two columns for first vis -->
<div class="row">
<!-- add image to left column -->
<div class="column">
<a href="https://ibb.co/6HYKrhY"><img src="https://i.ibb.co/dPBNj9B/vis1.png" alt="vis1" border="0"></a>
</div>
<!-- add explaination on right column -->
<div class="column">
<h3>Marks </h3>
<ul>
<li>Area</li>
</ul>
<h3>Channels</h3>
<ul>
<li>Color</li>
<ul>
<li>represents the attribute of type categorical. This color attribute represent each state vote for which candidate. Different color represents different candidate.</li>
<li>We think this is a good mapping. For visualization1, it used color to control the appearance of marks. In this graph, blue represents Clinton and red represents Trump. Then people can cearly see the vote rate from the graph by those two distinct colors.</li>
</ul>
<li>position</li>
<ul>
<li>It use positioning of the states in the grographic map. Both position(vertical and horizontal) are used.</li>
<li> We think it is a good choice because that we can clearly see the vote rate from the map and define a trend.
</ul>
<h3>Color maps </h3>
<ul>
<li>represents the attribute of type categorical</li>
<li>Because it just have two color red and blue to show the Trump or Clinton, just two categories</li>
<li>It is a good choice because those two colors are perceptually distant, which can allow people to see the difference clearly.
</ul>
</div>
</div>
<!-- add two columns for second vis -->
<div class="row">
<!-- add image to left column -->
<div class="column">
<a href="https://ibb.co/TmW0LRX"><img src="https://i.ibb.co/LnNg56w/vis2.png" alt="vis2" border="0"></a>
</div>
<!-- add explaination on right column -->
<div class="column">
<h3>Marks </h3>
<ul>
<li>Points</li>
</ul>
<!-- Channels and reasons -->
<h3>Channels</h3>
<ul>
<li>Color Luminance , position(Both)-Ordered-Quantitative</li>
<ul>
<li>It used color to show the scoring values. In this graph, Purple represents scoring value below the average and orange represents scores above the average level.</li>
<li> We think it is a good choice because it can easily compare each score to average and then decide whether is above avg or not.
</ul>
<li>position(Both)-Ordered-Quantitative</li>
<ul>
<li>For position(Both), the higher the point on the graph, the higher the angle of the ball. The farther right on the graph, the higher exit velocity. So we think position is a good choice because user can clearly see the trend of each ball. If we want to use other channel to represent, such as the shape, it would be really hard to read.</li>
</ul>
</ul>
<h3>Color maps </h3>
<ul>
<li>Divergent colormap</li>
<ul>
<li>Because purple and orange to indicate extrmes of a range to show the scores value of batted balls</li>
<li>It is a good choice because it can show clearly differentiate between each point with “average” </li>
</ul>
</div>
</div>
<!-- add two columns for third vis -->
<div class="row">
<!-- add image to left column -->
<div class="column">
<a href="https://ibb.co/GsbXCzh"><img src="https://i.ibb.co/mvMmhfx/vis3.png" alt="vis3" border="0"></a>
</div>
<!-- add explaination on right column -->
<div class="column">
<h3> Graph</h3>
<li> The graph above is showing all housing violations(from noise complaints to gun violence) that occurred in Boston in 2021. Every plot in the graph represents a row in the civ file, and the location is based on longitude and latitude. The colors represent each neighborhoods in the city.</li>
<h3>Marks </h3>
<ul>
<li>Points</li>
</ul>
<h3>Channels</h3>
<ul>
<li>Color-Categorical</li>
<li>For the color, it represents the number of violations happend in the different neighborhood in Boston area. Each color represents different neighborhood and each point represent a housing violation happened.</li>
<li> Position(Both)-Ordered-Quantitative</li>
<ul>
<li>For the horizonral, it represents the longtitude of the violation happened.For the vertical, it represents the latitude of the violation happened</li>
<li> We think it is a good choice because when we use position, Latitude and longtitude can show the trend with the violation. Then we can use it to make the conclusion of the trend that with lower latitude and longtitude, there is less violation.</li>
</ul>
<h3>Color maps </h3>
<ul>
<li>Categorical colormap</li>
<ul>
<li>Because it have really different colors to represent each neighborhood in Boston.</li>
<li>It is a good choice because those colors are perceptually distant, which can allow people to see the difference clearly.
</li>
</ul>
</ul>
</div>
</div>
<h2>Acknowledgements</h2>
<div>
<p1>
<ul>
<li>https://www.kaggle.com/datasets/AnalyzeBoston/crimes-in-boston</li>
<li>https://imgbb.com/</li>
<li>https://www.w3schools.com/html/default.asp</li>
<li>https://www.w3schools.com/css/default.asp</li>
<li>https://www.geeksforgeeks.org/dom-document-object-model/</li>
</ul>
</p1>
</div>
<!-- add botton to the webpage-->
<h2>Click the botton to modify the page</h2>
<div>
<button type = "button" onClick="buttonClicked(
)">Click me!</button>
<div id = "button-div" class = "gen">
Number of times button clicked: 0
<!-- link javaScript file -->
<script src="main.js"></script>
</body>
</html>