-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
205 lines (155 loc) · 7.8 KB
/
index.html
File metadata and controls
205 lines (155 loc) · 7.8 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/third/normalize.min.css">
<link rel="stylesheet" href="/graph/css/main.css">
<link rel="stylesheet" href="/graph/css/beet.css">
<!-- <link rel="stylesheet" href="/third/jquery-ui-1.10.4.draggable/jquery-ui.css"> -->
<!-- <script src="/third/modernizr-2.6.2.min.js"></script> -->
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div id="graphBox"></div>
<div id="menuBox">
<div id='description'>
<h2> BEET </h2>
<h4>(supposedly) Beats Excel Every Time</h4>
The purpose of BEET is to bring together the rapidly evolving world of web based data analysis and visualisation tools. Most of these libraries do a few things really well, but to combine theme takes an experienced software developper. BEET lets you access thousands of tools accross the web, and combine them without a single line of code. But for the curious or experienced, editing the underlying code is just as easy.
<h4> Example Libraries</h4>
<a href="http://handsontable.com/"> HandsonTable</a> for an editable table.
<a href="http://leafletjs.com/">Leaflet.js</a> for maps.
<a href="http://d3js.org/">D3.js</a> for beatiful graphics and heaps of utility functions.
<a href="http://mathjs.org/">math.js</a> for more maths functions.
<a href="http://www.mathjax.org/">MathJax</a> to render it.
<a href="http://www.macwright.org/simple-statistics/">Simple Statistics</a> or <a href="http://jstat.github.io/">jStat</a> for stats.
<a href="https://github.com/michael/github"> Github API wrapper for saving, sharing, and version control.</a>
<a href="http://underscorejs.org/">Undercore.js</a> for a few utility functions.
<a href="http://jquery.com/">jQuery</a> of course.
<h4> Example Data APIs</h4>
<a href="http://data.un.org/Host.aspx?Content=API"> UN </a>.
<a href="http://data.worldbank.org/data-catalog/world-development-indicators"> World bank</a>.
<a href="https://support.google.com/fusiontables/answer/2573812?hl=en&ref_topic=1652595"> Google fusion tables</a>
<!--
http://www.abs.gov.au/ausstats/abs@.nsf/Lookup/1407.0.55.002main+features32013
http://stats.oecd.org/OpenDataAPI/Json.htm
http://data.gov.au/
http://scriptular.com/
http://misoproject.com/dataset/
https://github.com/jsoma/tabletop
// simple editable: http://mindmup.github.io/editable-table/
// thanks to http://jsfiddle.net/ondras/hYfN3/
Block requierments:
main function
default is good - in an except loop or perhaps if (! input) input = default
<a href="http://ace.c9.io/#nav=about"> Ace editor </a> for the feature-packed code editor.
<a href="https://github.com/replit/jq-console"> Repl.it jq-console for the console.</a>
-->
<!-- http://chandoo.org/wp/2013/04/16/learn-top-10-excel-features/
http://office.microsoft.com/en-au/excel-help/excel-functions-by-category-HP005204211.aspx
VBA
pivot tables
charts
lookup formulas
sorting/filtering
conditional formatting
drop down forms and validation
PowerPivot, Data Explorer & Data Analysis features -->
<!--
<table>
<tr>
<td></td>
<td>BEET</td>
<td>Excel</td>
</tr>
<tr>
<td> Number of questions tagged on Stack Exchange http://stackoverflow.com/tags </td>
<td> 658052+ javascript, 320302+ html , 236731+ css</td>
<td> 29888+ vba, 19068+ excel-vba, 48577+ excel</td>
</tr>
<tr>
<td> Open source projects on Github http://langpop.com/ https://api.github.com/search/repositories?q=language:javascript</td>
<td> javascript 845914+ </td>
<td> visual basic 37197+ </td>
</tr>
</table>
-->
</div>
<!--
<span id="position"></span>
<div id="dragbar"></div>
-->
<div id="resize" class='menu'><i class='icon-left-open'></i><i class='icon-right-open'></i></div>
<div id='file-image' class='menu'><i class='icon-file-image'></i></div>
<div id='file-code' class='menu'><i class='icon-file-code'></i></div>
<div id='editor'></div>
</div>
<div id="junkIframes"></div>
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> -->
<script>window.jQuery || document.write('<script src="/third/jquery-1.11.0.min.js"><\/script>')</script>
<!-- <script src="/third/jquery-ui-1.10.4.draggable/jquery-ui.js"></script>
<script src="/third/jquery.ui.touchpunch.js"></script>
-->
<script src="/third/underscore.js"></script>
<script src="/third/backbone.js"></script>
<script src="/third/d3.min.js"></script>
<script src="/third/base64.js"></script>
<script src="/third/github.js"></script>
<script src="/third/ace-src-min-noconflict/ace.js"></script>
<script src="/third/ace-src-min-noconflict/ext-language_tools.js"></script>
<!--
<script src="/third/jquery.panzoom.js"></script>
<script src="/graph/js/svg.js"></script>
-->
<script src="/graph/js/views.js"></script>
<script src="/graph/js/main.js"></script>
<script src="/graph/js/blocks.js"></script>
<script src="/graph/js/editorView.js"></script>
<script id="wrapMain" type="text/template">
<%= close %>
<%= open %>
// thanks to http://underscorejs.org
//TODO namespace
var beet = {};
beet.slice = Array.prototype.slice;
beet.partial = function(func) {
var boundArgs = beet.slice.call(arguments, 1);
return function() {
var position = 0;
var args = boundArgs.slice();
for (var i = 0, length = args.length; i < length; i++) {
}
while (position < arguments.length) args.push(arguments[position++]);
return func.apply(this, args);
};
};
beet.wrap = function(func, wrapper) {
return beet.partial(wrapper, func);
};
main = beet.wrap(main, function(func) {
try{
var model = parent.blocks.get('<%= id %>');
var inputs = model.get('inputs') || [];
var inputValues = model.get('inputValues') || [];
var output = func.apply(this,inputs.map(function(input){ return inputValues.get(input) }));
// console.log("<%= id %>", output, inputs.map(function(input){ return inputValues.get(input) }))
model.set("output", output);
return output;
}
catch(err){
console.log(err + 'in block <%= id %>');
}
});
parent.blocks.get('<%= id %>').get('inputValues').on('change',main);
</script>
</body>
</html>