-
Notifications
You must be signed in to change notification settings - Fork 368
/
example1.html
59 lines (52 loc) · 1.75 KB
/
example1.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
<!DOCTYPE html>
<html>
<head>
<title>The demo thing</title>
<script src="../dist/nteractapi.js"></script>
</head>
<body>
<div id="output" style="height: 100ch ;margin: 2px;"></div>
<script>
let basicData = {
schema: {
fields: [
{
name: "valueA",
type: "integer"
},
{
name: "valueB",
type: "integer"
},
{
name: "valueC",
type: "integer"
},
{
name: "label",
type: "string"
},
{
name: "isGood",
type: "boolean"
}
],
primaryKey: []
},
data: [
{ valueA: 3, valueB: 5, valueC: 1, label: "first", isGood: false },
{ valueA: 10, valueB: 1, valueC: 12, label: "second", isGood: true },
{ valueA: 10, valueB: 1, valueC: 12, label: "fifth", isGood: true },
{ valueA: 10, valueB: 1, valueC: 12, label: "sixth", isGood: true },
{ valueA: 10, valueB: 1, valueC: 12, label: "seventh", isGood: true },
{ valueA: -5, valueB: 8, valueC: 6, label: "third", isGood: true },
{ valueA: -50, valueB: 8, valueC: 6, label: "third", isGood: true }
]
};
let viewer = nteract.createDataExplorer({
data: basicData,
container: document.getElementById("output")
});
</script>
</body>
</html>