forked from thelmanews/th-google-regions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
42 lines (33 loc) · 1.03 KB
/
demo.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
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>lens-viz-g-regions Demo</title>
<script src="../webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="lens-viz-g-regions.html">
</head>
<style>
body {
font-family: arial;
background-color: #303B49;
color: #FFF;
}
</style>
<body unresolved>
<p>An `lens-viz-g-regions` looks like this:</p>
<lens-viz-g-regions></lens-viz-g-regions>
</body>
<script>
document.addEventListener('polymer-ready', function() {
var chart = document.querySelector('lens-viz-g-regions');
document.addEventListener('google-chart-render', function() {
console.log('changing selection');
chart.selection = [{row: 1, column: null}];
})
document.addEventListener('google-chart-select', function(e) {
console.log(e);
console.log(chart.selection);
})
})
</script>
</html>