-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (42 loc) · 965 Bytes
/
index.html
File metadata and controls
46 lines (42 loc) · 965 Bytes
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
<!doctype html>
<html>
<head>
<script type="text/javascript" src="./lib/plotly/plotly.min.js" charset="utf-8"></script>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<script type="text/javascript">
// histogram 1
([1, 2, 2, 2, 3, 3, 4, 5]).draw();
// histogram 2
(["a", "b", "a", "c", "d", "d", "d", "a"]).draw();
// scatter plot
([
{x: 10, y: 10, r: 37},
{x: 20, y: 11.2, r: 2},
{x: 22, y: 31, r: 17},
{x: 40, y: 5.7, r: 11},
{x: 32, y: 11, r: 28}
]).draw();
// line chart
({
1: [1, 12, 3],
4: [12, 31, 4],
5: [3, 24, 4],
6: [12, 17, 6],
12: [8, 2, 9],
13: [21, 34, 6],
21: [6, 7, 8]
}).draw();
// stacked bar chart
([
["jan", 1, 4, 5, 6],
["jan", 2, 3, 5, 6],
["jan", 3, 10, 11],
["mar", 4, 9, 7, 10],
["may", 3, 10, 8, 1],
["sep", 11, 1, 9, 0]
]).draw();
</script>
</body>
</html>