-
Notifications
You must be signed in to change notification settings - Fork 1
/
index_v4.html
62 lines (58 loc) · 1.38 KB
/
index_v4.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
<!DOCTYPE html>
<head>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">
<script src="http://d3js.org/d3.v4.min.js"></script>
<script src="../min/lexiconRainbow.d3v4.min.js"></script>
<style type ="text/css">
</style>
</head>
<body style="padding-top:1px;margin:auto;width:1000px;height:500px;">
<div id="containerDiv" style="margin:auto;"></div>
<script type="text/javascript">
////////////////////////////////////////////////////////////////////
/////////////////////////A MINIMAL DATASET//////////////////////////
////////////////////////////////////////////////////////////////////
var sample = {
"ordinal": [
{
"name": "A Minimal Set",
"categories": {
"A": 1,
"B": 2,
"C": 3
}
}
],
"linear": [
{
"domain": [-10,10],
"name": "A Minimal Set",
"categories": {
"A": {intervals:[-9,-4]},
"B": {intervals:[[-2,2]]},
"C": {intervals:8}
}
}
]
};
////////////////////////////////////////////////////////////////////
/////////////////////////CREATE AN INSTANCE/////////////////////////
////////////////////////////////////////////////////////////////////
(new LexiconRainbow)
.container("#containerDiv")
.forceStyle()
.w(600)
.h(200)
.sW("80%")
.sH("270px")
.position("relative")
.sTop("0px")
.sLeft("0px")
.sMargin("5px auto 0px auto")
.lexID("lexiconRainbow")
.input(sample)
.append(true)
.render();
</script>
</body>
</html>