-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from jpmorganchase/themeable
UI theme support
- Loading branch information
Showing
19 changed files
with
1,248 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
packages/perspective-examples/src/html/theme-material.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!-- | ||
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"> | ||
|
||
<script src="perspective.view.js" preload></script> | ||
<script src="hypergrid.plugin.js"></script> | ||
<script src="highcharts.plugin.js"></script> | ||
|
||
<script src="mobile_fix.js"></script> | ||
|
||
<link rel='stylesheet' href="demo.css"> | ||
|
||
<!-- Import a theme! --> | ||
<link rel='stylesheet' href="material.dark.css"> | ||
|
||
</head> | ||
<body> | ||
|
||
<perspective-viewer | ||
view="sunburst" | ||
row-pivots='["Sub-Category","Region","Segment"]' | ||
sort='[["Profit","desc"]]' | ||
columns='["Sales", "Profit"]'> | ||
|
||
</perspective-viewer> | ||
|
||
<script> | ||
|
||
window.addEventListener('WebComponentsReady', function () { | ||
var xhr = new XMLHttpRequest(); | ||
xhr.open('GET', 'superstore.arrow', true); | ||
xhr.responseType = "arraybuffer" | ||
xhr.onload = function () { | ||
var el = document.getElementsByTagName('perspective-viewer')[0]; | ||
el.load(xhr.response); | ||
el._toggle_config(); | ||
} | ||
xhr.send(null); | ||
}); | ||
|
||
</script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.