forked from finos/perspective
-
Notifications
You must be signed in to change notification settings - Fork 0
/
superstore-hypergrid.html
44 lines (28 loc) · 1.15 KB
/
superstore-hypergrid.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
<!--
Copyright (c) 2017, the Perspective Authors.
This file is part of the Perspective library, distributed under the terms of
the Apache License 2.0. The full license can be found in the LICENSE file.
-->
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<script src="perspective-viewer.js"></script>
<script src="perspective-viewer-hypergrid.js"></script>
<script src="perspective.js"></script>
<link rel='stylesheet' href="index.css">
<link rel='stylesheet' href="material-dense.css" is="custom-style">
</head>
<body>
<perspective-viewer id="grid" plugin='hypergrid' filters='[["State","==","Texas"]]' editable>
</perspective-viewer>
<script>
window.addEventListener('DOMContentLoaded', async function() {
const viewer = document.getElementsByTagName('perspective-viewer')[0];
const data = await fetch("superstore.arrow");
viewer.load(await data.arrayBuffer(), {index: "Row ID"});
viewer.toggleConfig();
});
</script>
</body>
</html>