forked from finos/perspective
-
Notifications
You must be signed in to change notification settings - Fork 0
/
treemap.html
41 lines (28 loc) · 994 Bytes
/
treemap.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
<!--
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>
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
<script src="perspective-viewer.js"></script>
<script src="perspective-viewer-highcharts.js"></script>
<link rel='stylesheet' href="demo.css">
</head>
<body>
<perspective-viewer
plugin='treemap'
columns='["Sales"]'>
</perspective-viewer>
<script>
var xhr = new XMLHttpRequest();
xhr.open('GET', 'superstore.csv', true);
xhr.onload = function () {
document.getElementsByTagName('perspective-viewer')[0].load(xhr.response);
}
xhr.send(null);
</script>
</body>
</html>