-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (62 loc) · 1.98 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
---
layout: default
description: What is an "average"? What's the difference between a mean, a median, and a mode? Confused? Find out here with our original calculator and visualization tool!
scripts:
- https://cdn.jsdelivr.net/npm/chart.js@3.7.1/dist/chart.min.js
- https://cdn.jsdelivr.net/npm/chartjs-plugin-annotation@1.4.0/dist/chartjs-plugin-annotation.min.js
- https://cdn.jsdelivr.net/npm/moment@2.29.1/moment.min.js
- https://cdn.jsdelivr.net/npm/chartjs-adapter-moment@1.0.0/dist/chartjs-adapter-moment.min.js
- /js/main.js
---
<section>
<p>{{ page.description }}</p>
</section>
<details open>
<summary>Data <a id="input-link" href="/"></a></summary>
<textarea id="data-box" rows="4">1, 1, 1, 2, 3, 4, 4.5, 5, 7, 8, 50</textarea>
</details>
<section>
<div class="comparison-container">
<div>
<h2>Mean <a href="{% link _pages/mean.html %}" class="about-link">(About)</a></h2>
<div class="result-container" id="mean">
<canvas></canvas>
<div class="list"></div>
<div class="answer"></div>
</div>
<div id="mean-math"></div>
</div>
<div>
<h2>Median <a href="{% link _pages/median.html %}" class="about-link">(About)</a></h2>
<div class="result-container" id="median">
<canvas></canvas>
<div class="list"></div>
<div class="answer"></div>
</div>
</div>
<div>
<h2>Mode<span id="mode-pluralizer">s</span> <a href="{% link _pages/mode.html %}" class="about-link">(About)</a></h2>
<div class="result-container" id="mode">
<canvas></canvas>
<div class="list"></div>
<div class="answer"></div>
</div>
</div>
</div>
</section>
<section>
<div>
<h2>Chart</h2>
<canvas id="chart"></canvas>
</div>
</section>
<noscript>
<section>
<p>Sorry, this visualizer requires JavaScript enabled to function properly. You can still see text definitions at these links, however:</p>
<ul>
<li><a href="/mean">Mean</a></li>
<li><a href="/median">Median</a></li>
<li><a href="/mode">Mode</a></li>
</ul>
</section>
</noscript>