-
Notifications
You must be signed in to change notification settings - Fork 8
/
demo-iris.html
97 lines (73 loc) · 2.81 KB
/
demo-iris.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!--
@license
Copyright (c) 2014 Thelma Project Authors. All rights reserved.
This code may only be used under the MIT license found at http://thelmanews.github.io/LICENSE.txt
The complete set of authors may be found at http://thelmanews.github.io//AUTHORS.txt
The complete set of contributors may be found at http://thelmanews.github.io/CONTRIBUTORS.txt
-->
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>lenses-freeform Demo</title>
<script src="../webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="lenses-freeform.html">
</head>
<style type="text/css">
h1 {
margin: 10px;
text-align: center;
color: #5E5E5E;
font-family: 'proxima-nova', sans-serif;
}
p {
margin-left: 30px;
}
a, a:visited {
color: #2fa3af;
text-decoration: none;
}
div {
background-color:#FEFEFE;
padding: 5px;
}
body {
font-family: 'proxima-nova', sans-serif;
color: #5E5E5E;
margin: 0;
}
html, body {
width: 100%;
height: 100%;
font-size: 14px;
}
th-component-list {
z-index: 100;
position: absolute;
right: 0px;
top: 0px;
}
#recreate {
position: absolute;
top: 100px;
z-index: 100;
}
</style>
<!-- <input type="button" id="recreate" value="recreate">
-->
<lenses-freeform >
</lenses-freeform>
</body>
<script>
document.addEventListener('polymer-ready', function() {
setTimeout(function() {
var lensData = {"elements":[{"id":"lens-input-csv-0","name":"lens-input-csv","top":130,"left":20,"settingOpen":false,"url":"https://dataminingproject.googlecode.com/svn-history/r44/DataMiningApp/datasets/Iris/iris.csv"},{"id":"lens-data-crossfilter-0","name":"lens-data-crossfilter","top":150,"left":200,"transform":"translate(-20px, -20px)","settingOpen":true,"selectedLabels":["Sepal Length","Sepal Width"],"selectedRanges":[]},{"id":"lens-viz-g-scatter-bubble-0","name":"lens-viz-g-scatter-bubble","top":160,"left":420,"resizable":true,"width":490,"height":506,"transform":"translate(80px, -30px)","backgroundColor":"none","legend":false,"labelValueSelection":["Sepal Length","Sepal Length","Sepal Width","none","Species"]}],"connections":[{"source":{"id":"lens-input-csv-0","name":"lens-input-csv"},"target":{"id":"lens-data-crossfilter-0","name":"lens-data-crossfilter","field":"input"}},{"source":{"id":"lens-data-crossfilter-0","name":"lens-data-crossfilter"},"target":{"id":"lens-viz-g-scatter-bubble-0","name":"lens-viz-g-scatter-bubble","field":"input"}}]};
var lens = document.querySelector('lenses-freeform');
lens.scaffoldFromData(lensData.elements, lensData.connections);
},1000);
});
window.onbeforeunload = function(e) {
return '';
};
</script>
</html>