1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | <!DOCTYPE html>
|
11 | <html>
|
12 | <head>
|
13 |
|
14 | <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
|
15 | <script src="perspective-viewer.js" preload></script>
|
16 |
|
17 | <link rel='stylesheet' href="demo.css">
|
18 |
|
19 | </head>
|
20 | <body>
|
21 |
|
22 | <perspective-viewer>
|
23 |
|
24 | </perspective-viewer>
|
25 |
|
26 | <script>
|
27 |
|
28 | var xhr = new XMLHttpRequest();
|
29 | xhr.open('GET', 'superstore.csv', true);
|
30 | xhr.onload = function () {
|
31 | window.__CSV__ = xhr.response;
|
32 | document.getElementsByTagName('perspective-viewer')[0].load(xhr.response);
|
33 | }
|
34 | xhr.send(null);
|
35 |
|
36 | </script>
|
37 |
|
38 | </body>
|
39 | </html>
|