Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (31 sloc) 1.28 KB
<!--
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-viewer-d3fc.js"></script>
<script src="perspective.js"></script>
<link rel='stylesheet' href="index.css">
<link rel='stylesheet' href="material.css" is="custom-style">
</head>
<body>
<perspective-viewer plugin="hypergrid" row-pivots='["Region", "State",
"City"]' column-pivots='["Category", "Sub-Category"]' sort='[["Profit","desc"]]' columns='["Sales",
"Profit"]'>
</perspective-viewer>
<script>
window.addEventListener('WebComponentsReady', async function() {
const viewer = document.getElementsByTagName('perspective-viewer')[0];
const data = await fetch("superstore.arrow");
viewer.load(await data.arrayBuffer());
viewer.toggleConfig();
});
</script>
</body>
</html>
You can’t perform that action at this time.