mdarray 0.5.5.2-java → 0.5.6-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. checksums.yaml +4 -4
  2. data/config.rb +29 -95
  3. data/doc/BinaryOperator.html +20 -21
  4. data/doc/BitwiseOperators.html +18 -8
  5. data/doc/BitwiseOperators/BinaryAnd.html +189 -0
  6. data/doc/BitwiseOperators/BinaryLeftShift.html +189 -0
  7. data/doc/BitwiseOperators/BinaryOnesComplement.html +189 -0
  8. data/doc/BitwiseOperators/BinaryOr.html +189 -0
  9. data/doc/BitwiseOperators/BinaryRightShift.html +189 -0
  10. data/doc/BitwiseOperators/BinaryXor.html +189 -0
  11. data/doc/BooleanFunctions.html +18 -8
  12. data/doc/BooleanFunctions/And.html +189 -0
  13. data/doc/BooleanFunctions/Not.html +189 -0
  14. data/doc/BooleanFunctions/Or.html +189 -0
  15. data/doc/BooleanMDArray.html +10 -10
  16. data/doc/ByteMDArray.html +73 -14
  17. data/doc/CernDoubleFunctions.html +208 -0
  18. data/doc/CernFloatFunctions.html +208 -0
  19. data/doc/CernFunctions.html +828 -0
  20. data/doc/CernIntFunctions.html +208 -0
  21. data/doc/CernLongFunctions.html +208 -0
  22. data/doc/CharMDArray.html +181 -0
  23. data/doc/Colt.html +18 -20
  24. data/doc/ComparisonOperators.html +18 -8
  25. data/doc/ComparisonOperators/Eq.html +189 -0
  26. data/doc/ComparisonOperators/Ge.html +189 -0
  27. data/doc/ComparisonOperators/Gt.html +189 -0
  28. data/doc/ComparisonOperators/Le.html +189 -0
  29. data/doc/ComparisonOperators/Lt.html +189 -0
  30. data/doc/Const.html +107 -47
  31. data/doc/Csv.html +325 -113
  32. data/doc/Csv/Dimension.html +771 -0
  33. data/doc/Csv/Dimensions.html +654 -0
  34. data/doc/DDescriptive.html +573 -625
  35. data/doc/DoubleMDArray.html +40 -172
  36. data/doc/DoubleStatList.html +19 -20
  37. data/doc/FastBinaryOperator.html +166 -148
  38. data/doc/FastUnaryOperator.html +104 -109
  39. data/doc/FloatMDArray.html +55 -16
  40. data/doc/FunctionCreation.html +53 -273
  41. data/doc/FunctionMap.html +381 -93
  42. data/doc/GenericFunctions.html +18 -8
  43. data/doc/GenericFunctions/Null.html +187 -0
  44. data/doc/IntMDArray.html +77 -16
  45. data/doc/Java/CernJetMathTdouble/DoubleFunctions.html +120 -0
  46. data/doc/Java/CernJetMathTfloat/FloatFunctions.html +120 -0
  47. data/doc/Java/CernJetMathTint/IntFunctions.html +120 -0
  48. data/doc/Java/CernJetMathTlong/LongFunctions.html +120 -0
  49. data/doc/LazyBinaryOperator.html +714 -0
  50. data/doc/LazyMDArray.html +990 -0
  51. data/doc/LazyMDArray/BinaryComp.html +282 -0
  52. data/doc/LazyMDArray/UnaryComp.html +280 -0
  53. data/doc/LazyUnaryOperator.html +537 -0
  54. data/doc/LongMDArray.html +59 -15
  55. data/doc/MDArray.html +3223 -2181
  56. data/doc/MDArray/Counter.html +321 -1233
  57. data/doc/MDArray/IteratorFast.html +177 -116
  58. data/doc/MDArray/IteratorFastBoolean.html +37 -41
  59. data/doc/MDArray/IteratorFastByte.html +46 -39
  60. data/doc/MDArray/IteratorFastChar.html +37 -41
  61. data/doc/MDArray/IteratorFastDouble.html +37 -41
  62. data/doc/MDArray/IteratorFastFloat.html +37 -41
  63. data/doc/MDArray/IteratorFastInt.html +37 -41
  64. data/doc/MDArray/IteratorFastLong.html +37 -41
  65. data/doc/MDArray/IteratorFastShort.html +37 -41
  66. data/doc/MDArray/Section.html +561 -0
  67. data/doc/Nashorn.html +1407 -0
  68. data/doc/NetCDF.html +749 -0
  69. data/doc/NetCDF/Attribute.html +875 -0
  70. data/doc/NetCDF/AttributeWriter.html +286 -0
  71. data/doc/NetCDF/CDMNode.html +460 -0
  72. data/doc/NetCDF/Dimension.html +559 -0
  73. data/doc/NetCDF/DimensionWriter.html +642 -0
  74. data/doc/NetCDF/File.html +1593 -0
  75. data/doc/NetCDF/FileParent.html +674 -0
  76. data/doc/NetCDF/FileWriter.html +2875 -0
  77. data/doc/NetCDF/Group.html +685 -0
  78. data/doc/NetCDF/GroupWriter.html +851 -0
  79. data/doc/NetCDF/TimeVariable.html +646 -0
  80. data/doc/NetCDF/Variable.html +2994 -0
  81. data/doc/NetCDF/VariableWriter.html +420 -0
  82. data/doc/NonNumericalMDArray.html +11 -11
  83. data/doc/NumericFunctions.html +38 -30
  84. data/doc/NumericFunctions/Abs.html +189 -0
  85. data/doc/NumericFunctions/Add.html +189 -0
  86. data/doc/NumericFunctions/Ceil.html +189 -0
  87. data/doc/NumericFunctions/Cube.html +189 -0
  88. data/doc/NumericFunctions/Div.html +189 -0
  89. data/doc/NumericFunctions/Floor.html +189 -0
  90. data/doc/NumericFunctions/Fourth.html +189 -0
  91. data/doc/NumericFunctions/IsZero.html +189 -0
  92. data/doc/NumericFunctions/Max.html +189 -0
  93. data/doc/NumericFunctions/Min.html +189 -0
  94. data/doc/NumericFunctions/Mul.html +189 -0
  95. data/doc/NumericFunctions/Power.html +189 -0
  96. data/doc/NumericFunctions/Square.html +189 -0
  97. data/doc/NumericFunctions/Sub.html +189 -0
  98. data/doc/NumericFunctions/Truncate.html +189 -0
  99. data/doc/NumericalMDArray.html +14 -15
  100. data/doc/Operator.html +318 -109
  101. data/doc/Proc.html +120 -129
  102. data/doc/RubyBinaryOperator.html +66 -70
  103. data/doc/RubyFunctions.html +572 -27
  104. data/doc/RubyMath.html +18 -8
  105. data/doc/RubyMath/Acos.html +189 -0
  106. data/doc/RubyMath/Acosh.html +189 -0
  107. data/doc/RubyMath/Asin.html +189 -0
  108. data/doc/RubyMath/Asinh.html +189 -0
  109. data/doc/RubyMath/Atan.html +189 -0
  110. data/doc/RubyMath/Atan2.html +189 -0
  111. data/doc/RubyMath/Atanh.html +189 -0
  112. data/doc/RubyMath/Cbrt.html +189 -0
  113. data/doc/RubyMath/Cos.html +189 -0
  114. data/doc/RubyMath/Cosh.html +189 -0
  115. data/doc/RubyMath/Erf.html +189 -0
  116. data/doc/RubyMath/Erfc.html +189 -0
  117. data/doc/RubyMath/Exp.html +189 -0
  118. data/doc/RubyMath/Gamma.html +189 -0
  119. data/doc/RubyMath/Hypot.html +189 -0
  120. data/doc/RubyMath/Ldexp.html +189 -0
  121. data/doc/RubyMath/Log.html +189 -0
  122. data/doc/RubyMath/Log10.html +189 -0
  123. data/doc/RubyMath/Log2.html +189 -0
  124. data/doc/RubyMath/Neg.html +189 -0
  125. data/doc/RubyMath/Sin.html +189 -0
  126. data/doc/RubyMath/Sinh.html +189 -0
  127. data/doc/RubyMath/Sqrt.html +189 -0
  128. data/doc/RubyMath/Tan.html +189 -0
  129. data/doc/RubyMath/Tanh.html +189 -0
  130. data/doc/RubyStats.html +8 -8
  131. data/doc/RubyUnaryOperator.html +61 -65
  132. data/doc/ShortMDArray.html +69 -14
  133. data/doc/Sol.html +700 -0
  134. data/doc/Sol/BarChart.html +181 -0
  135. data/doc/Sol/BaseChart.html +800 -0
  136. data/doc/Sol/Bootstrap.html +1137 -0
  137. data/doc/Sol/Bridge.html +586 -0
  138. data/doc/Sol/Chart.html +1162 -0
  139. data/doc/Sol/CoordinateChart.html +679 -0
  140. data/doc/Sol/Dashboard.html +2094 -0
  141. data/doc/Sol/Dashboard/DCFX.html +786 -0
  142. data/doc/Sol/Dashboard/MyHandle.html +338 -0
  143. data/doc/Sol/Dashboard/MyService.html +202 -0
  144. data/doc/Sol/Dashboard/MyTask.html +291 -0
  145. data/doc/Sol/Interval.html +1213 -0
  146. data/doc/Sol/LineChart.html +346 -0
  147. data/doc/Sol/LinearScale.html +334 -0
  148. data/doc/Sol/Margins.html +219 -0
  149. data/doc/Sol/OrdinalScale.html +263 -0
  150. data/doc/Sol/Scale.html +462 -0
  151. data/doc/Sol/Stack.html +199 -0
  152. data/doc/Sol/TimeScale.html +397 -0
  153. data/doc/StatList.html +110 -125
  154. data/doc/StringMDArray.html +10 -10
  155. data/doc/StructureMDArray.html +10 -10
  156. data/doc/UnaryOperator.html +20 -21
  157. data/doc/UserFunction.html +51 -49
  158. data/doc/_index.html +881 -106
  159. data/doc/class_list.html +8 -3
  160. data/doc/css/style.css +2 -1
  161. data/doc/file.README.html +455 -104
  162. data/doc/file_list.html +7 -2
  163. data/doc/frames.html +5 -7
  164. data/doc/index.html +455 -104
  165. data/doc/js/app.js +7 -2
  166. data/doc/js/full_list.js +11 -3
  167. data/doc/method_list.html +3170 -1233
  168. data/doc/top-level-namespace.html +31 -8
  169. data/lib/colt/matrix/algebra.rb +5 -5
  170. data/lib/mdarray.rb +6 -3
  171. data/lib/mdarray/csv.rb +25 -5
  172. data/lib/mdarray/fast_operators.rb +1 -1
  173. data/lib/mdarray/function_creation.rb +3 -1
  174. data/lib/mdarray/hierarchy.rb +2 -0
  175. data/lib/mdarray/operators.rb +1 -1
  176. data/lib/mdarray/ruby_functions.rb +8 -4
  177. data/lib/mdarray/ruby_math.rb +0 -28
  178. data/test/colt/matrix/test_matrix2d_floatingalgebra.rb +31 -7
  179. data/test/complete.rb +4 -4
  180. data/test/mdarray/PETR4_2014.csv +249 -0
  181. data/test/mdarray/VALE_2014.csv +253 -0
  182. data/test/mdarray/VALE_PETR4.csv +501 -0
  183. data/test/mdarray/arithmetic_casting.rb +1 -0
  184. data/test/mdarray/test_access.rb +1 -0
  185. data/test/mdarray/test_boolean.rb +1 -0
  186. data/test/mdarray/test_comparison.rb +1 -0
  187. data/test/mdarray/test_complete.rb +2 -5
  188. data/test/mdarray/test_counter.rb +1 -0
  189. data/test/mdarray/test_creation.rb +1 -0
  190. data/test/mdarray/test_csv.rb +51 -0
  191. data/test/mdarray/test_error.rb +1 -0
  192. data/test/mdarray/test_non_numeric.rb +1 -1
  193. data/test/mdarray/test_operator.rb +31 -14
  194. data/test/mdarray/test_performance.rb +2 -1
  195. data/test/mdarray/test_printing.rb +1 -0
  196. data/test/mdarray/test_sections.rb +1 -0
  197. data/test/mdarray/test_shape.rb +1 -0
  198. data/test/mdarray/test_trigonometry.rb +1 -0
  199. data/test/mdarray/test_views.rb +1 -0
  200. data/vendor/mdarray.jar +0 -0
  201. data/vendor/{netcdfAll-4.5_0.jar → netcdfAll-4.6.jar} +0 -0
  202. data/vendor/slf4j-jdk14-1.7.12.jar +0 -0
  203. data/version.rb +1 -1
  204. metadata +247 -139
  205. data/lib/env.rb +0 -12
  206. data/lib/mdarray/lazy_mdarray.rb +0 -315
  207. data/lib/mdarray/lazy_operators.rb +0 -174
  208. data/test/env.rb +0 -8
  209. data/test/mdarray/test_lazy.rb +0 -306
@@ -0,0 +1,2094 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Sol::Dashboard
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!Sol/Dashboard.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../_index.html">Index (D)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../Sol.html" title="Sol (class)">Sol</a></span></span>
36
+ &raquo;
37
+ <span class="title">Dashboard</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: Sol::Dashboard
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">Object</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">Sol::Dashboard</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <dt class="r2 last">Defined in:</dt>
97
+ <dd class="r2 last">lib/webview/dashboard.rb<span class="defines">,<br />
98
+ lib/webview/dcfx.rb</span>
99
+ </dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <h6 id="label-"></h6>
108
+
109
+ <h6 id="label-"></h6>
110
+
111
+
112
+ </div>
113
+ </div>
114
+ <div class="tags">
115
+
116
+
117
+ </div><h2>Defined Under Namespace</h2>
118
+ <p class="children">
119
+
120
+
121
+
122
+
123
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Dashboard/DCFX.html" title="Sol::Dashboard::DCFX (class)">DCFX</a></span>, <span class='object_link'><a href="Dashboard/MyHandle.html" title="Sol::Dashboard::MyHandle (class)">MyHandle</a></span>, <span class='object_link'><a href="Dashboard/MyService.html" title="Sol::Dashboard::MyService (class)">MyService</a></span>, <span class='object_link'><a href="Dashboard/MyTask.html" title="Sol::Dashboard::MyTask (class)">MyTask</a></span>
124
+
125
+
126
+ </p>
127
+
128
+
129
+
130
+
131
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
132
+ <ul class="summary">
133
+
134
+ <li class="public ">
135
+ <span class="summary_signature">
136
+
137
+ <a href="#base_dimensions-instance_method" title="#base_dimensions (instance method)">- (Object) <strong>base_dimensions</strong> </a>
138
+
139
+
140
+
141
+ </span>
142
+
143
+
144
+
145
+
146
+ <span class="note title readonly">readonly</span>
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+ <span class="summary_desc"><div class='inline'>
157
+ <p>dimensions used by crossfilter.</p>
158
+ </div></span>
159
+
160
+ </li>
161
+
162
+
163
+ <li class="public ">
164
+ <span class="summary_signature">
165
+
166
+ <a href="#bridge-instance_method" title="#bridge (instance method)">- (Object) <strong>bridge</strong> </a>
167
+
168
+
169
+
170
+ </span>
171
+
172
+
173
+
174
+
175
+ <span class="note title readonly">readonly</span>
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+ <span class="summary_desc"><div class='inline'>
186
+ <p>communication channel.</p>
187
+ </div></span>
188
+
189
+ </li>
190
+
191
+
192
+ <li class="public ">
193
+ <span class="summary_signature">
194
+
195
+ <a href="#charts-instance_method" title="#charts (instance method)">- (Object) <strong>charts</strong> </a>
196
+
197
+
198
+
199
+ </span>
200
+
201
+
202
+
203
+
204
+ <span class="note title readonly">readonly</span>
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+ <span class="summary_desc"><div class='inline'>
215
+ <p>Returns the value of attribute charts.</p>
216
+ </div></span>
217
+
218
+ </li>
219
+
220
+
221
+ <li class="public ">
222
+ <span class="summary_signature">
223
+
224
+ <a href="#data-instance_method" title="#data (instance method)">- (Object) <strong>data</strong> </a>
225
+
226
+
227
+
228
+ </span>
229
+
230
+
231
+
232
+
233
+ <span class="note title readonly">readonly</span>
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+ <span class="summary_desc"><div class='inline'>
244
+ <p>Returns the value of attribute data.</p>
245
+ </div></span>
246
+
247
+ </li>
248
+
249
+
250
+ <li class="public ">
251
+ <span class="summary_signature">
252
+
253
+ <a href="#date_columns-instance_method" title="#date_columns (instance method)">- (Object) <strong>date_columns</strong> </a>
254
+
255
+
256
+
257
+ </span>
258
+
259
+
260
+
261
+
262
+ <span class="note title readonly">readonly</span>
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+ <span class="summary_desc"><div class='inline'>
273
+ <p>columns that have date information.</p>
274
+ </div></span>
275
+
276
+ </li>
277
+
278
+
279
+ <li class="public ">
280
+ <span class="summary_signature">
281
+
282
+ <a href="#demo_script-instance_method" title="#demo_script (instance method)">- (Object) <strong>demo_script</strong> </a>
283
+
284
+
285
+
286
+ </span>
287
+
288
+
289
+
290
+
291
+ <span class="note title readonly">readonly</span>
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+ <span class="summary_desc"><div class='inline'>
302
+ <p>If a javascript script is added to demo_script, then this script will be
303
+ executed by the dashboard.</p>
304
+ </div></span>
305
+
306
+ </li>
307
+
308
+
309
+ <li class="public ">
310
+ <span class="summary_signature">
311
+
312
+ <a href="#dimension_labels-instance_method" title="#dimension_labels (instance method)">- (Object) <strong>dimension_labels</strong> </a>
313
+
314
+
315
+
316
+ </span>
317
+
318
+
319
+
320
+
321
+ <span class="note title readonly">readonly</span>
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+ <span class="summary_desc"><div class='inline'>
332
+ <p>Returns the value of attribute dimension_labels.</p>
333
+ </div></span>
334
+
335
+ </li>
336
+
337
+
338
+ <li class="public ">
339
+ <span class="summary_signature">
340
+
341
+ <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
342
+
343
+
344
+
345
+ </span>
346
+
347
+
348
+
349
+
350
+ <span class="note title readonly">readonly</span>
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+ <span class="summary_desc"><div class='inline'>
361
+ <p>Returns the value of attribute name.</p>
362
+ </div></span>
363
+
364
+ </li>
365
+
366
+
367
+ <li class="public ">
368
+ <span class="summary_signature">
369
+
370
+ <a href="#properties-instance_method" title="#properties (instance method)">- (Object) <strong>properties</strong> </a>
371
+
372
+
373
+
374
+ </span>
375
+
376
+
377
+
378
+
379
+ <span class="note title readonly">readonly</span>
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+ <span class="summary_desc"><div class='inline'>
390
+ <p>Returns the value of attribute properties.</p>
391
+ </div></span>
392
+
393
+ </li>
394
+
395
+
396
+ <li class="public ">
397
+ <span class="summary_signature">
398
+
399
+ <a href="#scene-instance_method" title="#scene (instance method)">- (Object) <strong>scene</strong> </a>
400
+
401
+
402
+
403
+ </span>
404
+
405
+
406
+
407
+
408
+ <span class="note title readonly">readonly</span>
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+ <span class="summary_desc"><div class='inline'>
419
+ <p>Returns the value of attribute scene.</p>
420
+ </div></span>
421
+
422
+ </li>
423
+
424
+
425
+ <li class="public ">
426
+ <span class="summary_signature">
427
+
428
+ <a href="#script-instance_method" title="#script (instance method)">- (Object) <strong>script</strong> </a>
429
+
430
+
431
+
432
+ </span>
433
+
434
+
435
+
436
+
437
+ <span class="note title readonly">readonly</span>
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+ <span class="summary_desc"><div class='inline'>
448
+ <p>automatically generated javascript script for this dashboard.</p>
449
+ </div></span>
450
+
451
+ </li>
452
+
453
+
454
+ </ul>
455
+
456
+
457
+
458
+
459
+
460
+ <h2>
461
+ Instance Method Summary
462
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
463
+ </h2>
464
+
465
+ <ul class="summary">
466
+
467
+ <li class="public ">
468
+ <span class="summary_signature">
469
+
470
+ <a href="#chart-instance_method" title="#chart (instance method)">- (Object) <strong>chart</strong>(type, x_column, y_column, name) </a>
471
+
472
+
473
+
474
+ </span>
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+ <span class="summary_desc"><div class='inline'>
485
+ <p>------------------------------------------------------------------------------------
486
+ Create a new chart of the given type and name, usign x_column for the
487
+ x_axis and y_column for the Y axis.</p>
488
+ </div></span>
489
+
490
+ </li>
491
+
492
+
493
+ <li class="public ">
494
+ <span class="summary_signature">
495
+
496
+ <a href="#clean-instance_method" title="#clean (instance method)">- (Object) <strong>clean</strong> </a>
497
+
498
+
499
+
500
+ </span>
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+ <span class="summary_desc"><div class='inline'>
511
+ <p>------------------------------------------------------------------------------------.</p>
512
+ </div></span>
513
+
514
+ </li>
515
+
516
+
517
+ <li class="public ">
518
+ <span class="summary_signature">
519
+
520
+ <a href="#dimension%3F-instance_method" title="#dimension? (instance method)">- (Boolean) <strong>dimension?</strong>(dim_name) </a>
521
+
522
+
523
+
524
+ </span>
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+ <span class="summary_desc"><div class='inline'>
535
+ <p>------------------------------------------------------------------------------------.</p>
536
+ </div></span>
537
+
538
+ </li>
539
+
540
+
541
+ <li class="public ">
542
+ <span class="summary_signature">
543
+
544
+ <a href="#dimensions_spec-instance_method" title="#dimensions_spec (instance method)">- (Object) <strong>dimensions_spec</strong> </a>
545
+
546
+
547
+
548
+ </span>
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+ <span class="summary_desc"><div class='inline'>
559
+ <p>------------------------------------------------------------------------------------.</p>
560
+ </div></span>
561
+
562
+ </li>
563
+
564
+
565
+ <li class="public ">
566
+ <span class="summary_signature">
567
+
568
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Dashboard) <strong>initialize</strong>(name, data, dimension_labels, date_columns = []) </a>
569
+
570
+
571
+
572
+ </span>
573
+
574
+
575
+ <span class="note title constructor">constructor</span>
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+ <span class="summary_desc"><div class='inline'>
585
+ <p>------------------------------------------------------------------------------------
586
+ Launches the UI and passes self so that it can add elements to it.</p>
587
+ </div></span>
588
+
589
+ </li>
590
+
591
+
592
+ <li class="public ">
593
+ <span class="summary_signature">
594
+
595
+ <a href="#plot-instance_method" title="#plot (instance method)">- (Object) <strong>plot</strong>(width = 1000, height = 500) </a>
596
+
597
+
598
+
599
+ </span>
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+ <span class="summary_desc"><div class='inline'>
610
+ <p>------------------------------------------------------------------------------------
611
+ Launches the UI and passes self so that it can add elements to it.</p>
612
+ </div></span>
613
+
614
+ </li>
615
+
616
+
617
+ <li class="public ">
618
+ <span class="summary_signature">
619
+
620
+ <a href="#prepare_dimension-instance_method" title="#prepare_dimension (instance method)">- (Object) <strong>prepare_dimension</strong>(dim_name, dim) </a>
621
+
622
+
623
+
624
+ </span>
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+ <span class="summary_desc"><div class='inline'>
635
+ <p>------------------------------------------------------------------------------------.</p>
636
+ </div></span>
637
+
638
+ </li>
639
+
640
+
641
+ <li class="public ">
642
+ <span class="summary_signature">
643
+
644
+ <a href="#props-instance_method" title="#props (instance method)">- (Object) <strong>props</strong> </a>
645
+
646
+
647
+
648
+ </span>
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+ <span class="summary_desc"><div class='inline'>
659
+ <p>------------------------------------------------------------------------------------
660
+ Prepare dashboard data and properties
661
+ ------------------------------------------------------------------------------------.</p>
662
+ </div></span>
663
+
664
+ </li>
665
+
666
+
667
+ <li class="public ">
668
+ <span class="summary_signature">
669
+
670
+ <a href="#re_run-instance_method" title="#re_run (instance method)">- (Object) <strong>re_run</strong> </a>
671
+
672
+
673
+
674
+ </span>
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+ <span class="summary_desc"><div class='inline'>
685
+ <p>------------------------------------------------------------------------------------.</p>
686
+ </div></span>
687
+
688
+ </li>
689
+
690
+
691
+ <li class="public ">
692
+ <span class="summary_signature">
693
+
694
+ <a href="#run-instance_method" title="#run (instance method)">- (Object) <strong>run</strong> </a>
695
+
696
+
697
+
698
+ </span>
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+ <span class="summary_desc"><div class='inline'>
709
+ <p>------------------------------------------------------------------------------------.</p>
710
+ </div></span>
711
+
712
+ </li>
713
+
714
+
715
+ <li class="public ">
716
+ <span class="summary_signature">
717
+
718
+ <a href="#set_demo_script-instance_method" title="#set_demo_script (instance method)">- (Object) <strong>set_demo_script</strong>(scrpt) </a>
719
+
720
+
721
+
722
+ </span>
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+ <span class="summary_desc"><div class='inline'>
733
+ <p>------------------------------------------------------------------------------------.</p>
734
+ </div></span>
735
+
736
+ </li>
737
+
738
+
739
+ <li class="public ">
740
+ <span class="summary_signature">
741
+
742
+ <a href="#time_format-instance_method" title="#time_format (instance method)">- (Object) <strong>time_format</strong>(val = nil) </a>
743
+
744
+
745
+
746
+ </span>
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+ <span class="summary_desc"><div class='inline'>
757
+ <p>------------------------------------------------------------------------------------.</p>
758
+ </div></span>
759
+
760
+ </li>
761
+
762
+
763
+ <li class="public ">
764
+ <span class="summary_signature">
765
+
766
+ <a href="#title%3D-instance_method" title="#title= (instance method)">- (Object) <strong>title=</strong>(title) </a>
767
+
768
+
769
+
770
+ </span>
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+ <span class="summary_desc"><div class='inline'>
781
+ <p>------------------------------------------------------------------------------------.</p>
782
+ </div></span>
783
+
784
+ </li>
785
+
786
+
787
+ </ul>
788
+
789
+
790
+ <div id="constructor_details" class="method_details_list">
791
+ <h2>Constructor Details</h2>
792
+
793
+ <div class="method_details first">
794
+ <h3 class="signature first" id="initialize-instance_method">
795
+
796
+ - (<tt><span class='object_link'><a href="" title="Sol::Dashboard (class)">Dashboard</a></span></tt>) <strong>initialize</strong>(name, data, dimension_labels, date_columns = [])
797
+
798
+
799
+
800
+
801
+
802
+ </h3><div class="docstring">
803
+ <div class="discussion">
804
+ <hr>
805
+
806
+ <p>Launches the UI and passes self so that it can add elements to it.</p>
807
+ <hr>
808
+
809
+
810
+ </div>
811
+ </div>
812
+ <div class="tags">
813
+
814
+
815
+ </div><table class="source_code">
816
+ <tr>
817
+ <td>
818
+ <pre class="lines">
819
+
820
+
821
+ 133
822
+ 134
823
+ 135
824
+ 136
825
+ 137
826
+ 138
827
+ 139
828
+ 140
829
+ 141
830
+ 142
831
+ 143
832
+ 144
833
+ 145
834
+ 146
835
+ 147
836
+ 148
837
+ 149
838
+ 150
839
+ 151
840
+ 152</pre>
841
+ </td>
842
+ <td>
843
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 133</span>
844
+
845
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_dimension_labels'>dimension_labels</span><span class='comma'>,</span> <span class='id identifier rubyid_date_columns'>date_columns</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
846
+
847
+ <span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
848
+ <span class='ivar'>@data</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span>
849
+ <span class='ivar'>@dimension_labels</span> <span class='op'>=</span> <span class='id identifier rubyid_dimension_labels'>dimension_labels</span>
850
+ <span class='ivar'>@date_columns</span> <span class='op'>=</span> <span class='id identifier rubyid_date_columns'>date_columns</span>
851
+
852
+ <span class='comment'># Access the bridge to communicate with DCFX. Bridge is a singleton class
853
+ </span> <span class='ivar'>@bridge</span> <span class='op'>=</span> <span class='const'>Bridge</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
854
+ <span class='comment'># prepare a bootstrap scene specification for this dashboard
855
+ </span> <span class='ivar'>@scene</span> <span class='op'>=</span> <span class='const'>Bootstrap</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
856
+ <span class='ivar'>@charts</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
857
+ <span class='ivar'>@properties</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
858
+ <span class='ivar'>@base_dimensions</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
859
+ <span class='ivar'>@has_data</span> <span class='op'>=</span> <span class='kw'>false</span> <span class='comment'># initialy dashboard has no data
860
+ </span> <span class='ivar'>@demo_script</span> <span class='op'>=</span> <span class='kw'>false</span>
861
+
862
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
863
+
864
+ <span class='kw'>end</span></pre>
865
+ </td>
866
+ </tr>
867
+ </table>
868
+ </div>
869
+
870
+ </div>
871
+
872
+ <div id="instance_attr_details" class="attr_details">
873
+ <h2>Instance Attribute Details</h2>
874
+
875
+
876
+ <span id=""></span>
877
+ <div class="method_details first">
878
+ <h3 class="signature first" id="base_dimensions-instance_method">
879
+
880
+ - (<tt>Object</tt>) <strong>base_dimensions</strong> <span class="extras">(readonly)</span>
881
+
882
+
883
+
884
+
885
+
886
+ </h3><div class="docstring">
887
+ <div class="discussion">
888
+
889
+ <p>dimensions used by crossfilter</p>
890
+
891
+
892
+ </div>
893
+ </div>
894
+ <div class="tags">
895
+
896
+
897
+ </div><table class="source_code">
898
+ <tr>
899
+ <td>
900
+ <pre class="lines">
901
+
902
+
903
+ 123
904
+ 124
905
+ 125</pre>
906
+ </td>
907
+ <td>
908
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 123</span>
909
+
910
+ <span class='kw'>def</span> <span class='id identifier rubyid_base_dimensions'>base_dimensions</span>
911
+ <span class='ivar'>@base_dimensions</span>
912
+ <span class='kw'>end</span></pre>
913
+ </td>
914
+ </tr>
915
+ </table>
916
+ </div>
917
+
918
+
919
+ <span id=""></span>
920
+ <div class="method_details ">
921
+ <h3 class="signature " id="bridge-instance_method">
922
+
923
+ - (<tt>Object</tt>) <strong>bridge</strong> <span class="extras">(readonly)</span>
924
+
925
+
926
+
927
+
928
+
929
+ </h3><div class="docstring">
930
+ <div class="discussion">
931
+
932
+ <p>communication channel</p>
933
+
934
+
935
+ </div>
936
+ </div>
937
+ <div class="tags">
938
+
939
+
940
+ </div><table class="source_code">
941
+ <tr>
942
+ <td>
943
+ <pre class="lines">
944
+
945
+
946
+ 121
947
+ 122
948
+ 123</pre>
949
+ </td>
950
+ <td>
951
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 121</span>
952
+
953
+ <span class='kw'>def</span> <span class='id identifier rubyid_bridge'>bridge</span>
954
+ <span class='ivar'>@bridge</span>
955
+ <span class='kw'>end</span></pre>
956
+ </td>
957
+ </tr>
958
+ </table>
959
+ </div>
960
+
961
+
962
+ <span id=""></span>
963
+ <div class="method_details ">
964
+ <h3 class="signature " id="charts-instance_method">
965
+
966
+ - (<tt>Object</tt>) <strong>charts</strong> <span class="extras">(readonly)</span>
967
+
968
+
969
+
970
+
971
+
972
+ </h3><div class="docstring">
973
+ <div class="discussion">
974
+
975
+ <p>Returns the value of attribute charts</p>
976
+
977
+
978
+ </div>
979
+ </div>
980
+ <div class="tags">
981
+
982
+
983
+ </div><table class="source_code">
984
+ <tr>
985
+ <td>
986
+ <pre class="lines">
987
+
988
+
989
+ 117
990
+ 118
991
+ 119</pre>
992
+ </td>
993
+ <td>
994
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 117</span>
995
+
996
+ <span class='kw'>def</span> <span class='id identifier rubyid_charts'>charts</span>
997
+ <span class='ivar'>@charts</span>
998
+ <span class='kw'>end</span></pre>
999
+ </td>
1000
+ </tr>
1001
+ </table>
1002
+ </div>
1003
+
1004
+
1005
+ <span id=""></span>
1006
+ <div class="method_details ">
1007
+ <h3 class="signature " id="data-instance_method">
1008
+
1009
+ - (<tt>Object</tt>) <strong>data</strong> <span class="extras">(readonly)</span>
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+ </h3><div class="docstring">
1016
+ <div class="discussion">
1017
+
1018
+ <p>Returns the value of attribute data</p>
1019
+
1020
+
1021
+ </div>
1022
+ </div>
1023
+ <div class="tags">
1024
+
1025
+
1026
+ </div><table class="source_code">
1027
+ <tr>
1028
+ <td>
1029
+ <pre class="lines">
1030
+
1031
+
1032
+ 112
1033
+ 113
1034
+ 114</pre>
1035
+ </td>
1036
+ <td>
1037
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 112</span>
1038
+
1039
+ <span class='kw'>def</span> <span class='id identifier rubyid_data'>data</span>
1040
+ <span class='ivar'>@data</span>
1041
+ <span class='kw'>end</span></pre>
1042
+ </td>
1043
+ </tr>
1044
+ </table>
1045
+ </div>
1046
+
1047
+
1048
+ <span id=""></span>
1049
+ <div class="method_details ">
1050
+ <h3 class="signature " id="date_columns-instance_method">
1051
+
1052
+ - (<tt>Object</tt>) <strong>date_columns</strong> <span class="extras">(readonly)</span>
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+ </h3><div class="docstring">
1059
+ <div class="discussion">
1060
+
1061
+ <p>columns that have date information</p>
1062
+
1063
+
1064
+ </div>
1065
+ </div>
1066
+ <div class="tags">
1067
+
1068
+
1069
+ </div><table class="source_code">
1070
+ <tr>
1071
+ <td>
1072
+ <pre class="lines">
1073
+
1074
+
1075
+ 114
1076
+ 115
1077
+ 116</pre>
1078
+ </td>
1079
+ <td>
1080
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 114</span>
1081
+
1082
+ <span class='kw'>def</span> <span class='id identifier rubyid_date_columns'>date_columns</span>
1083
+ <span class='ivar'>@date_columns</span>
1084
+ <span class='kw'>end</span></pre>
1085
+ </td>
1086
+ </tr>
1087
+ </table>
1088
+ </div>
1089
+
1090
+
1091
+ <span id=""></span>
1092
+ <div class="method_details ">
1093
+ <h3 class="signature " id="demo_script-instance_method">
1094
+
1095
+ - (<tt>Object</tt>) <strong>demo_script</strong> <span class="extras">(readonly)</span>
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+ </h3><div class="docstring">
1102
+ <div class="discussion">
1103
+
1104
+ <p>If a javascript script is added to demo_script, then this script will be
1105
+ executed by the dashboard.</p>
1106
+
1107
+
1108
+ </div>
1109
+ </div>
1110
+ <div class="tags">
1111
+
1112
+
1113
+ </div><table class="source_code">
1114
+ <tr>
1115
+ <td>
1116
+ <pre class="lines">
1117
+
1118
+
1119
+ 127
1120
+ 128
1121
+ 129</pre>
1122
+ </td>
1123
+ <td>
1124
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 127</span>
1125
+
1126
+ <span class='kw'>def</span> <span class='id identifier rubyid_demo_script'>demo_script</span>
1127
+ <span class='ivar'>@demo_script</span>
1128
+ <span class='kw'>end</span></pre>
1129
+ </td>
1130
+ </tr>
1131
+ </table>
1132
+ </div>
1133
+
1134
+
1135
+ <span id=""></span>
1136
+ <div class="method_details ">
1137
+ <h3 class="signature " id="dimension_labels-instance_method">
1138
+
1139
+ - (<tt>Object</tt>) <strong>dimension_labels</strong> <span class="extras">(readonly)</span>
1140
+
1141
+
1142
+
1143
+
1144
+
1145
+ </h3><div class="docstring">
1146
+ <div class="discussion">
1147
+
1148
+ <p>Returns the value of attribute dimension_labels</p>
1149
+
1150
+
1151
+ </div>
1152
+ </div>
1153
+ <div class="tags">
1154
+
1155
+
1156
+ </div><table class="source_code">
1157
+ <tr>
1158
+ <td>
1159
+ <pre class="lines">
1160
+
1161
+
1162
+ 113
1163
+ 114
1164
+ 115</pre>
1165
+ </td>
1166
+ <td>
1167
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 113</span>
1168
+
1169
+ <span class='kw'>def</span> <span class='id identifier rubyid_dimension_labels'>dimension_labels</span>
1170
+ <span class='ivar'>@dimension_labels</span>
1171
+ <span class='kw'>end</span></pre>
1172
+ </td>
1173
+ </tr>
1174
+ </table>
1175
+ </div>
1176
+
1177
+
1178
+ <span id=""></span>
1179
+ <div class="method_details ">
1180
+ <h3 class="signature " id="name-instance_method">
1181
+
1182
+ - (<tt>Object</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+ </h3><div class="docstring">
1189
+ <div class="discussion">
1190
+
1191
+ <p>Returns the value of attribute name</p>
1192
+
1193
+
1194
+ </div>
1195
+ </div>
1196
+ <div class="tags">
1197
+
1198
+
1199
+ </div><table class="source_code">
1200
+ <tr>
1201
+ <td>
1202
+ <pre class="lines">
1203
+
1204
+
1205
+ 111
1206
+ 112
1207
+ 113</pre>
1208
+ </td>
1209
+ <td>
1210
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 111</span>
1211
+
1212
+ <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
1213
+ <span class='ivar'>@name</span>
1214
+ <span class='kw'>end</span></pre>
1215
+ </td>
1216
+ </tr>
1217
+ </table>
1218
+ </div>
1219
+
1220
+
1221
+ <span id=""></span>
1222
+ <div class="method_details ">
1223
+ <h3 class="signature " id="properties-instance_method">
1224
+
1225
+ - (<tt>Object</tt>) <strong>properties</strong> <span class="extras">(readonly)</span>
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+ </h3><div class="docstring">
1232
+ <div class="discussion">
1233
+
1234
+ <p>Returns the value of attribute properties</p>
1235
+
1236
+
1237
+ </div>
1238
+ </div>
1239
+ <div class="tags">
1240
+
1241
+
1242
+ </div><table class="source_code">
1243
+ <tr>
1244
+ <td>
1245
+ <pre class="lines">
1246
+
1247
+
1248
+ 115
1249
+ 116
1250
+ 117</pre>
1251
+ </td>
1252
+ <td>
1253
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 115</span>
1254
+
1255
+ <span class='kw'>def</span> <span class='id identifier rubyid_properties'>properties</span>
1256
+ <span class='ivar'>@properties</span>
1257
+ <span class='kw'>end</span></pre>
1258
+ </td>
1259
+ </tr>
1260
+ </table>
1261
+ </div>
1262
+
1263
+
1264
+ <span id=""></span>
1265
+ <div class="method_details ">
1266
+ <h3 class="signature " id="scene-instance_method">
1267
+
1268
+ - (<tt>Object</tt>) <strong>scene</strong> <span class="extras">(readonly)</span>
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+ </h3><div class="docstring">
1275
+ <div class="discussion">
1276
+
1277
+ <p>Returns the value of attribute scene</p>
1278
+
1279
+
1280
+ </div>
1281
+ </div>
1282
+ <div class="tags">
1283
+
1284
+
1285
+ </div><table class="source_code">
1286
+ <tr>
1287
+ <td>
1288
+ <pre class="lines">
1289
+
1290
+
1291
+ 118
1292
+ 119
1293
+ 120</pre>
1294
+ </td>
1295
+ <td>
1296
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 118</span>
1297
+
1298
+ <span class='kw'>def</span> <span class='id identifier rubyid_scene'>scene</span>
1299
+ <span class='ivar'>@scene</span>
1300
+ <span class='kw'>end</span></pre>
1301
+ </td>
1302
+ </tr>
1303
+ </table>
1304
+ </div>
1305
+
1306
+
1307
+ <span id=""></span>
1308
+ <div class="method_details ">
1309
+ <h3 class="signature " id="script-instance_method">
1310
+
1311
+ - (<tt>Object</tt>) <strong>script</strong> <span class="extras">(readonly)</span>
1312
+
1313
+
1314
+
1315
+
1316
+
1317
+ </h3><div class="docstring">
1318
+ <div class="discussion">
1319
+
1320
+ <p>automatically generated javascript script for this dashboard</p>
1321
+
1322
+
1323
+ </div>
1324
+ </div>
1325
+ <div class="tags">
1326
+
1327
+
1328
+ </div><table class="source_code">
1329
+ <tr>
1330
+ <td>
1331
+ <pre class="lines">
1332
+
1333
+
1334
+ 119
1335
+ 120
1336
+ 121</pre>
1337
+ </td>
1338
+ <td>
1339
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 119</span>
1340
+
1341
+ <span class='kw'>def</span> <span class='id identifier rubyid_script'>script</span>
1342
+ <span class='ivar'>@script</span>
1343
+ <span class='kw'>end</span></pre>
1344
+ </td>
1345
+ </tr>
1346
+ </table>
1347
+ </div>
1348
+
1349
+ </div>
1350
+
1351
+
1352
+ <div id="instance_method_details" class="method_details_list">
1353
+ <h2>Instance Method Details</h2>
1354
+
1355
+
1356
+ <div class="method_details first">
1357
+ <h3 class="signature first" id="chart-instance_method">
1358
+
1359
+ - (<tt>Object</tt>) <strong>chart</strong>(type, x_column, y_column, name)
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+ </h3><div class="docstring">
1366
+ <div class="discussion">
1367
+ <hr>
1368
+
1369
+ <p>Create a new chart of the given type and name, usign x_column for the
1370
+ x_axis and y_column for the Y axis. Set the default values for the chart.
1371
+ Those values can be changed by the user later.</p>
1372
+ <hr>
1373
+
1374
+
1375
+ </div>
1376
+ </div>
1377
+ <div class="tags">
1378
+
1379
+
1380
+ </div><table class="source_code">
1381
+ <tr>
1382
+ <td>
1383
+ <pre class="lines">
1384
+
1385
+
1386
+ 196
1387
+ 197
1388
+ 198
1389
+ 199
1390
+ 200
1391
+ 201
1392
+ 202
1393
+ 203
1394
+ 204
1395
+ 205
1396
+ 206
1397
+ 207
1398
+ 208
1399
+ 209
1400
+ 210
1401
+ 211
1402
+ 212</pre>
1403
+ </td>
1404
+ <td>
1405
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 196</span>
1406
+
1407
+ <span class='kw'>def</span> <span class='id identifier rubyid_chart'>chart</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_x_column'>x_column</span><span class='comma'>,</span> <span class='id identifier rubyid_y_column'>y_column</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
1408
+
1409
+ <span class='id identifier rubyid_prepare_dimension'>prepare_dimension</span><span class='lparen'>(</span><span class='id identifier rubyid_x_column'>x_column</span><span class='comma'>,</span> <span class='id identifier rubyid_x_column'>x_column</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@base_dimensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_x_column'>x_column</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Dimension</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1410
+
1411
+ <span class='id identifier rubyid_chart'>chart</span> <span class='op'>=</span> <span class='const'>Sol</span><span class='op'>::</span><span class='const'>Chart</span><span class='period'>.</span><span class='id identifier rubyid_build'>build</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_x_column'>x_column</span><span class='comma'>,</span> <span class='id identifier rubyid_y_column'>y_column</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
1412
+
1413
+ <span class='comment'># Set chart defaults. Should preferably be read from a config file
1414
+ </span> <span class='id identifier rubyid_chart'>chart</span><span class='period'>.</span><span class='id identifier rubyid_elastic_y'>elastic_y</span><span class='lparen'>(</span><span class='kw'>true</span><span class='rparen'>)</span>
1415
+ <span class='id identifier rubyid_chart'>chart</span><span class='period'>.</span><span class='id identifier rubyid_x_axis_label'>x_axis_label</span><span class='lparen'>(</span><span class='id identifier rubyid_x_column'>x_column</span><span class='rparen'>)</span>
1416
+ <span class='id identifier rubyid_chart'>chart</span><span class='period'>.</span><span class='id identifier rubyid_y_axis_label'>y_axis_label</span><span class='lparen'>(</span><span class='id identifier rubyid_y_column'>y_column</span><span class='rparen'>)</span>
1417
+ <span class='comment'># p &quot;type: #{type}, x_column #{x_column}, y_column #{y_column}, name #{name}&quot;
1418
+ </span> <span class='id identifier rubyid_chart'>chart</span><span class='period'>.</span><span class='id identifier rubyid_group'>group</span><span class='lparen'>(</span><span class='symbol'>:reduce_sum</span><span class='rparen'>)</span>
1419
+
1420
+ <span class='ivar'>@charts</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_chart'>chart</span>
1421
+ <span class='id identifier rubyid_chart'>chart</span>
1422
+
1423
+ <span class='kw'>end</span></pre>
1424
+ </td>
1425
+ </tr>
1426
+ </table>
1427
+ </div>
1428
+
1429
+ <div class="method_details ">
1430
+ <h3 class="signature " id="clean-instance_method">
1431
+
1432
+ - (<tt>Object</tt>) <strong>clean</strong>
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+ </h3><div class="docstring">
1439
+ <div class="discussion">
1440
+ <hr>
1441
+ <hr>
1442
+
1443
+
1444
+ </div>
1445
+ </div>
1446
+ <div class="tags">
1447
+
1448
+
1449
+ </div><table class="source_code">
1450
+ <tr>
1451
+ <td>
1452
+ <pre class="lines">
1453
+
1454
+
1455
+ 320
1456
+ 321
1457
+ 322
1458
+ 323</pre>
1459
+ </td>
1460
+ <td>
1461
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 320</span>
1462
+
1463
+ <span class='kw'>def</span> <span class='id identifier rubyid_clean'>clean</span>
1464
+ <span class='ivar'>@scene</span> <span class='op'>=</span> <span class='const'>Bootstrap</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1465
+ <span class='ivar'>@charts</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1466
+ <span class='kw'>end</span></pre>
1467
+ </td>
1468
+ </tr>
1469
+ </table>
1470
+ </div>
1471
+
1472
+ <div class="method_details ">
1473
+ <h3 class="signature " id="dimension?-instance_method">
1474
+
1475
+ - (<tt>Boolean</tt>) <strong>dimension?</strong>(dim_name)
1476
+
1477
+
1478
+
1479
+
1480
+
1481
+ </h3><div class="docstring">
1482
+ <div class="discussion">
1483
+ <hr>
1484
+ <hr>
1485
+
1486
+
1487
+ </div>
1488
+ </div>
1489
+ <div class="tags">
1490
+
1491
+ <p class="tag_title">Returns:</p>
1492
+ <ul class="return">
1493
+
1494
+ <li>
1495
+
1496
+
1497
+ <span class='type'>(<tt>Boolean</tt>)</span>
1498
+
1499
+
1500
+
1501
+ </li>
1502
+
1503
+ </ul>
1504
+
1505
+ </div><table class="source_code">
1506
+ <tr>
1507
+ <td>
1508
+ <pre class="lines">
1509
+
1510
+
1511
+ 178
1512
+ 179
1513
+ 180</pre>
1514
+ </td>
1515
+ <td>
1516
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 178</span>
1517
+
1518
+ <span class='kw'>def</span> <span class='id identifier rubyid_dimension?'>dimension?</span><span class='lparen'>(</span><span class='id identifier rubyid_dim_name'>dim_name</span><span class='rparen'>)</span>
1519
+ <span class='op'>!</span><span class='ivar'>@base_dimension</span><span class='lbracket'>[</span><span class='const'>Sol</span><span class='period'>.</span><span class='id identifier rubyid_camelcase'>camelcase</span><span class='lparen'>(</span><span class='id identifier rubyid_dim_name'>dim_name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1520
+ <span class='kw'>end</span></pre>
1521
+ </td>
1522
+ </tr>
1523
+ </table>
1524
+ </div>
1525
+
1526
+ <div class="method_details ">
1527
+ <h3 class="signature " id="dimensions_spec-instance_method">
1528
+
1529
+ - (<tt>Object</tt>) <strong>dimensions_spec</strong>
1530
+
1531
+
1532
+
1533
+
1534
+
1535
+ </h3><div class="docstring">
1536
+ <div class="discussion">
1537
+ <hr>
1538
+ <hr>
1539
+
1540
+
1541
+ </div>
1542
+ </div>
1543
+ <div class="tags">
1544
+
1545
+
1546
+ </div><table class="source_code">
1547
+ <tr>
1548
+ <td>
1549
+ <pre class="lines">
1550
+
1551
+
1552
+ 218
1553
+ 219
1554
+ 220
1555
+ 221
1556
+ 222
1557
+ 223
1558
+ 224
1559
+ 225
1560
+ 226
1561
+ 227
1562
+ 228</pre>
1563
+ </td>
1564
+ <td>
1565
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 218</span>
1566
+
1567
+ <span class='kw'>def</span> <span class='id identifier rubyid_dimensions_spec'>dimensions_spec</span>
1568
+
1569
+ <span class='id identifier rubyid_facts'>facts</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@name</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='rbrace'>}</span><span class='tstring_content'>_facts</span><span class='tstring_end'>&quot;</span></span>
1570
+
1571
+ <span class='id identifier rubyid_dim_spec'>dim_spec</span> <span class='op'>=</span> <span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1572
+ <span class='ivar'>@base_dimensions</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
1573
+ <span class='id identifier rubyid_dim_spec'>dim_spec</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>var </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_key'>key</span><span class='rbrace'>}</span><span class='tstring_content'> = </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_facts'>facts</span><span class='rbrace'>}</span><span class='tstring_content'>.dimension(function(d) {return d[\&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='rbrace'>}</span><span class='tstring_content'>\&quot;];});</span><span class='tstring_end'>&quot;</span></span>
1574
+ <span class='kw'>end</span>
1575
+ <span class='id identifier rubyid_dim_spec'>dim_spec</span>
1576
+
1577
+ <span class='kw'>end</span></pre>
1578
+ </td>
1579
+ </tr>
1580
+ </table>
1581
+ </div>
1582
+
1583
+ <div class="method_details ">
1584
+ <h3 class="signature " id="plot-instance_method">
1585
+
1586
+ - (<tt>Object</tt>) <strong>plot</strong>(width = 1000, height = 500)
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+ </h3><div class="docstring">
1593
+ <div class="discussion">
1594
+ <hr>
1595
+
1596
+ <p>Launches the UI and passes self so that it can add elements to it.</p>
1597
+ <hr>
1598
+
1599
+
1600
+ </div>
1601
+ </div>
1602
+ <div class="tags">
1603
+
1604
+
1605
+ </div><table class="source_code">
1606
+ <tr>
1607
+ <td>
1608
+ <pre class="lines">
1609
+
1610
+
1611
+ 329
1612
+ 330
1613
+ 331
1614
+ 332
1615
+ 333
1616
+ 334
1617
+ 335
1618
+ 336
1619
+ 337
1620
+ 338
1621
+ 339
1622
+ 340
1623
+ 341
1624
+ 342
1625
+ 343
1626
+ 344
1627
+ 345
1628
+ 346
1629
+ 347
1630
+ 348
1631
+ 349</pre>
1632
+ </td>
1633
+ <td>
1634
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 329</span>
1635
+
1636
+ <span class='kw'>def</span> <span class='id identifier rubyid_plot'>plot</span><span class='lparen'>(</span><span class='id identifier rubyid_width'>width</span> <span class='op'>=</span> <span class='int'>1000</span><span class='comma'>,</span> <span class='id identifier rubyid_height'>height</span> <span class='op'>=</span> <span class='int'>500</span><span class='rparen'>)</span>
1637
+
1638
+ <span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='const'>DCFX</span><span class='period'>.</span><span class='id identifier rubyid_launch'>launch</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span><span class='comma'>,</span> <span class='id identifier rubyid_height'>height</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='kw'>if</span> <span class='op'>!</span><span class='const'>DCFX</span><span class='period'>.</span><span class='id identifier rubyid_launched?'>launched?</span>
1639
+
1640
+ <span class='comment'># Remove all elements from the dashboard. This could be changed in future releases
1641
+ </span> <span class='comment'># of the library.
1642
+ </span> <span class='const'>Sol</span><span class='period'>.</span><span class='id identifier rubyid_delete_all'>delete_all</span>
1643
+
1644
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='op'>!</span><span class='ivar'>@has_data</span><span class='rparen'>)</span>
1645
+ <span class='id identifier rubyid_add_data'>add_data</span>
1646
+ <span class='id identifier rubyid_run'>run</span>
1647
+ <span class='id identifier rubyid_clean'>clean</span>
1648
+ <span class='kw'>else</span>
1649
+ <span class='id identifier rubyid_re_run'>re_run</span>
1650
+ <span class='kw'>end</span>
1651
+
1652
+ <span class='ivar'>@bridge</span><span class='period'>.</span><span class='id identifier rubyid_mutex'>mutex</span><span class='period'>.</span><span class='id identifier rubyid_synchronize'>synchronize</span> <span class='lbrace'>{</span>
1653
+ <span class='ivar'>@bridge</span><span class='period'>.</span><span class='id identifier rubyid_cv'>cv</span><span class='period'>.</span><span class='id identifier rubyid_wait'>wait</span><span class='lparen'>(</span><span class='ivar'>@bridge</span><span class='period'>.</span><span class='id identifier rubyid_mutex'>mutex</span><span class='rparen'>)</span>
1654
+ <span class='rbrace'>}</span>
1655
+
1656
+ <span class='kw'>end</span></pre>
1657
+ </td>
1658
+ </tr>
1659
+ </table>
1660
+ </div>
1661
+
1662
+ <div class="method_details ">
1663
+ <h3 class="signature " id="prepare_dimension-instance_method">
1664
+
1665
+ - (<tt>Object</tt>) <strong>prepare_dimension</strong>(dim_name, dim)
1666
+
1667
+
1668
+
1669
+
1670
+
1671
+ </h3><div class="docstring">
1672
+ <div class="discussion">
1673
+ <hr>
1674
+ <hr>
1675
+
1676
+
1677
+ </div>
1678
+ </div>
1679
+ <div class="tags">
1680
+
1681
+
1682
+ </div><table class="source_code">
1683
+ <tr>
1684
+ <td>
1685
+ <pre class="lines">
1686
+
1687
+
1688
+ 168
1689
+ 169
1690
+ 170
1691
+ 171
1692
+ 172</pre>
1693
+ </td>
1694
+ <td>
1695
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 168</span>
1696
+
1697
+ <span class='kw'>def</span> <span class='id identifier rubyid_prepare_dimension'>prepare_dimension</span><span class='lparen'>(</span><span class='id identifier rubyid_dim_name'>dim_name</span><span class='comma'>,</span> <span class='id identifier rubyid_dim'>dim</span><span class='rparen'>)</span>
1698
+ <span class='comment'># @base_dimensions[Sol.camelcase(dim_name.to_s)] = dim
1699
+ </span> <span class='ivar'>@base_dimensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_dim_name'>dim_name</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Dimension</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_dim'>dim</span>
1700
+ <span class='kw'>return</span> <span class='kw'>self</span>
1701
+ <span class='kw'>end</span></pre>
1702
+ </td>
1703
+ </tr>
1704
+ </table>
1705
+ </div>
1706
+
1707
+ <div class="method_details ">
1708
+ <h3 class="signature " id="props-instance_method">
1709
+
1710
+ - (<tt>Object</tt>) <strong>props</strong>
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+ </h3><div class="docstring">
1717
+ <div class="discussion">
1718
+ <hr>
1719
+
1720
+ <p>Prepare dashboard data and properties</p>
1721
+ <hr>
1722
+
1723
+
1724
+ </div>
1725
+ </div>
1726
+ <div class="tags">
1727
+
1728
+
1729
+ </div><table class="source_code">
1730
+ <tr>
1731
+ <td>
1732
+ <pre class="lines">
1733
+
1734
+
1735
+ 234
1736
+ 235
1737
+ 236
1738
+ 237
1739
+ 238
1740
+ 239
1741
+ 240
1742
+ 241
1743
+ 242
1744
+ 243
1745
+ 244
1746
+ 245
1747
+ 246
1748
+ 247
1749
+ 248
1750
+ 249
1751
+ 250
1752
+ 251
1753
+ 252
1754
+ 253
1755
+ 254
1756
+ 255
1757
+ 256
1758
+ 257
1759
+ 258</pre>
1760
+ </td>
1761
+ <td>
1762
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 234</span>
1763
+
1764
+ <span class='kw'>def</span> <span class='id identifier rubyid_props'>props</span>
1765
+
1766
+ <span class='id identifier rubyid_dashboard'>dashboard</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@name</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='rbrace'>}</span><span class='tstring_content'>_dashboard</span><span class='tstring_end'>&quot;</span></span>
1767
+ <span class='id identifier rubyid_facts'>facts</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@name</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='rbrace'>}</span><span class='tstring_content'>_facts</span><span class='tstring_end'>&quot;</span></span>
1768
+ <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@name</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='rbrace'>}</span><span class='tstring_content'>_data</span><span class='tstring_end'>&quot;</span></span>
1769
+
1770
+ <span class='comment'># convert the data to JSON format
1771
+ </span> <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>=</span> <span class='heredoc_beg'>&lt;&lt;EOS</span>
1772
+ <span class='tstring_content'>
1773
+ var </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dashboard'>dashboard</span><span class='rbrace'>}</span><span class='tstring_content'> = new DCDashboard();
1774
+ </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dashboard'>dashboard</span><span class='rbrace'>}</span><span class='tstring_content'>.convert(</span><span class='embexpr_beg'>#{</span><span class='ivar'>@date_columns</span><span class='rbrace'>}</span><span class='tstring_content'>);
1775
+ // Make variable data accessible to all charts
1776
+ var </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_data'>data</span><span class='rbrace'>}</span><span class='tstring_content'> = </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dashboard'>dashboard</span><span class='rbrace'>}</span><span class='tstring_content'>.getData();
1777
+ //$('#help').append(JSON.stringify(</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_data'>data</span><span class='rbrace'>}</span><span class='tstring_content'>));
1778
+ // add data to crossfilter and call it 'facts'.
1779
+ </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_facts'>facts</span><span class='rbrace'>}</span><span class='tstring_content'> = crossfilter(</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_data'>data</span><span class='rbrace'>}</span><span class='tstring_content'>);
1780
+ </span><span class='heredoc_end'>EOS
1781
+ </span>
1782
+ <span class='ivar'>@properties</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
1783
+ <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_value'>value</span>
1784
+ <span class='kw'>end</span>
1785
+
1786
+ <span class='id identifier rubyid_scrpt'>scrpt</span>
1787
+
1788
+ <span class='kw'>end</span></pre>
1789
+ </td>
1790
+ </tr>
1791
+ </table>
1792
+ </div>
1793
+
1794
+ <div class="method_details ">
1795
+ <h3 class="signature " id="re_run-instance_method">
1796
+
1797
+ - (<tt>Object</tt>) <strong>re_run</strong>
1798
+
1799
+
1800
+
1801
+
1802
+
1803
+ </h3><div class="docstring">
1804
+ <div class="discussion">
1805
+ <hr>
1806
+ <hr>
1807
+
1808
+
1809
+ </div>
1810
+ </div>
1811
+ <div class="tags">
1812
+
1813
+
1814
+ </div><table class="source_code">
1815
+ <tr>
1816
+ <td>
1817
+ <pre class="lines">
1818
+
1819
+
1820
+ 297
1821
+ 298
1822
+ 299
1823
+ 300
1824
+ 301
1825
+ 302
1826
+ 303
1827
+ 304
1828
+ 305
1829
+ 306
1830
+ 307
1831
+ 308
1832
+ 309
1833
+ 310
1834
+ 311
1835
+ 312
1836
+ 313
1837
+ 314</pre>
1838
+ </td>
1839
+ <td>
1840
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 297</span>
1841
+
1842
+ <span class='kw'>def</span> <span class='id identifier rubyid_re_run'>re_run</span>
1843
+
1844
+ <span class='comment'># add bootstrap container if it wasn't specified by the user
1845
+ </span> <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_create_grid'>create_grid</span><span class='lparen'>(</span><span class='lparen'>(</span><span class='id identifier rubyid_keys'>keys</span> <span class='op'>=</span> <span class='ivar'>@charts</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span><span class='comma'>,</span> <span class='id identifier rubyid_keys'>keys</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_specified?'>specified?</span>
1846
+
1847
+ <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>=</span> <span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1848
+ <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>&lt;&lt;</span> <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_bootstrap'>bootstrap</span>
1849
+ <span class='comment'># add charts
1850
+ </span> <span class='ivar'>@charts</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_chart'>chart</span><span class='op'>|</span>
1851
+ <span class='comment'># add the chart specification
1852
+ </span> <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_chart'>chart</span><span class='period'>.</span><span class='id identifier rubyid_js_spec'>js_spec</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_chart'>chart</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1853
+ <span class='kw'>end</span>
1854
+ <span class='comment'># render all charts
1855
+ </span> <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>dc.renderAll();</span><span class='tstring_end'>&quot;</span></span>
1856
+
1857
+ <span class='id identifier rubyid_add_message'>add_message</span><span class='lparen'>(</span><span class='symbol'>:gui</span><span class='comma'>,</span> <span class='symbol'>:executeScript</span><span class='comma'>,</span> <span class='id identifier rubyid_scrpt'>scrpt</span><span class='rparen'>)</span>
1858
+
1859
+ <span class='kw'>end</span></pre>
1860
+ </td>
1861
+ </tr>
1862
+ </table>
1863
+ </div>
1864
+
1865
+ <div class="method_details ">
1866
+ <h3 class="signature " id="run-instance_method">
1867
+
1868
+ - (<tt>Object</tt>) <strong>run</strong>
1869
+
1870
+
1871
+
1872
+
1873
+
1874
+ </h3><div class="docstring">
1875
+ <div class="discussion">
1876
+ <hr>
1877
+ <hr>
1878
+
1879
+
1880
+ </div>
1881
+ </div>
1882
+ <div class="tags">
1883
+
1884
+
1885
+ </div><table class="source_code">
1886
+ <tr>
1887
+ <td>
1888
+ <pre class="lines">
1889
+
1890
+
1891
+ 264
1892
+ 265
1893
+ 266
1894
+ 267
1895
+ 268
1896
+ 269
1897
+ 270
1898
+ 271
1899
+ 272
1900
+ 273
1901
+ 274
1902
+ 275
1903
+ 276
1904
+ 277
1905
+ 278
1906
+ 279
1907
+ 280
1908
+ 281
1909
+ 282
1910
+ 283
1911
+ 284
1912
+ 285
1913
+ 286
1914
+ 287
1915
+ 288
1916
+ 289
1917
+ 290
1918
+ 291</pre>
1919
+ </td>
1920
+ <td>
1921
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 264</span>
1922
+
1923
+ <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
1924
+
1925
+ <span class='comment'># scrpt will have the javascript specification
1926
+ </span> <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>=</span> <span class='const'>String</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1927
+ <span class='comment'># add dashboard properties
1928
+ </span> <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_props'>props</span>
1929
+
1930
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@demo_script</span><span class='rparen'>)</span>
1931
+ <span class='id identifier rubyid_add_message'>add_message</span><span class='lparen'>(</span><span class='ivar'>@demo_script</span><span class='rparen'>)</span>
1932
+ <span class='kw'>return</span>
1933
+ <span class='kw'>end</span>
1934
+
1935
+ <span class='comment'># add bootstrap container if it wasn't specified by the user
1936
+ </span> <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_create_grid'>create_grid</span><span class='lparen'>(</span><span class='lparen'>(</span><span class='id identifier rubyid_keys'>keys</span> <span class='op'>=</span> <span class='ivar'>@charts</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span><span class='comma'>,</span> <span class='id identifier rubyid_keys'>keys</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_specified?'>specified?</span>
1937
+ <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>&lt;&lt;</span> <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_bootstrap'>bootstrap</span>
1938
+ <span class='comment'># add dimensions (the x dimension)
1939
+ </span> <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_dimensions_spec'>dimensions_spec</span>
1940
+ <span class='comment'># add charts
1941
+ </span> <span class='ivar'>@charts</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_chart'>chart</span><span class='op'>|</span>
1942
+ <span class='comment'># add the chart specification
1943
+ </span> <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_chart'>chart</span><span class='period'>.</span><span class='id identifier rubyid_js_spec'>js_spec</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_chart'>chart</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1944
+ <span class='kw'>end</span>
1945
+ <span class='comment'># render all charts
1946
+ </span> <span class='id identifier rubyid_scrpt'>scrpt</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>dc.renderAll();</span><span class='tstring_end'>&quot;</span></span>
1947
+
1948
+ <span class='id identifier rubyid_add_message'>add_message</span><span class='lparen'>(</span><span class='symbol'>:gui</span><span class='comma'>,</span> <span class='symbol'>:executeScript</span><span class='comma'>,</span> <span class='id identifier rubyid_scrpt'>scrpt</span><span class='rparen'>)</span>
1949
+
1950
+ <span class='kw'>end</span></pre>
1951
+ </td>
1952
+ </tr>
1953
+ </table>
1954
+ </div>
1955
+
1956
+ <div class="method_details ">
1957
+ <h3 class="signature " id="set_demo_script-instance_method">
1958
+
1959
+ - (<tt>Object</tt>) <strong>set_demo_script</strong>(scrpt)
1960
+
1961
+
1962
+
1963
+
1964
+
1965
+ </h3><div class="docstring">
1966
+ <div class="discussion">
1967
+ <hr>
1968
+ <hr>
1969
+
1970
+
1971
+ </div>
1972
+ </div>
1973
+ <div class="tags">
1974
+
1975
+
1976
+ </div><table class="source_code">
1977
+ <tr>
1978
+ <td>
1979
+ <pre class="lines">
1980
+
1981
+
1982
+ 355
1983
+ 356
1984
+ 357</pre>
1985
+ </td>
1986
+ <td>
1987
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 355</span>
1988
+
1989
+ <span class='kw'>def</span> <span class='id identifier rubyid_set_demo_script'>set_demo_script</span><span class='lparen'>(</span><span class='id identifier rubyid_scrpt'>scrpt</span><span class='rparen'>)</span>
1990
+ <span class='ivar'>@demo_script</span> <span class='op'>=</span> <span class='id identifier rubyid_scrpt'>scrpt</span>
1991
+ <span class='kw'>end</span></pre>
1992
+ </td>
1993
+ </tr>
1994
+ </table>
1995
+ </div>
1996
+
1997
+ <div class="method_details ">
1998
+ <h3 class="signature " id="time_format-instance_method">
1999
+
2000
+ - (<tt>Object</tt>) <strong>time_format</strong>(val = nil)
2001
+
2002
+
2003
+
2004
+
2005
+
2006
+ </h3><div class="docstring">
2007
+ <div class="discussion">
2008
+ <hr>
2009
+ <hr>
2010
+
2011
+
2012
+ </div>
2013
+ </div>
2014
+ <div class="tags">
2015
+
2016
+
2017
+ </div><table class="source_code">
2018
+ <tr>
2019
+ <td>
2020
+ <pre class="lines">
2021
+
2022
+
2023
+ 158
2024
+ 159
2025
+ 160
2026
+ 161
2027
+ 162</pre>
2028
+ </td>
2029
+ <td>
2030
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 158</span>
2031
+
2032
+ <span class='kw'>def</span> <span class='id identifier rubyid_time_format'>time_format</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
2033
+ <span class='kw'>return</span> <span class='ivar'>@properties</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>timeFormat</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_val'>val</span>
2034
+ <span class='ivar'>@properties</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>timeFormat</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>var timeFormat = d3.time.format(\&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_val'>val</span><span class='rbrace'>}</span><span class='tstring_content'>\&quot;);</span><span class='tstring_end'>&quot;</span></span>
2035
+ <span class='kw'>return</span> <span class='kw'>self</span>
2036
+ <span class='kw'>end</span></pre>
2037
+ </td>
2038
+ </tr>
2039
+ </table>
2040
+ </div>
2041
+
2042
+ <div class="method_details ">
2043
+ <h3 class="signature " id="title=-instance_method">
2044
+
2045
+ - (<tt>Object</tt>) <strong>title=</strong>(title)
2046
+
2047
+
2048
+
2049
+
2050
+
2051
+ </h3><div class="docstring">
2052
+ <div class="discussion">
2053
+ <hr>
2054
+ <hr>
2055
+
2056
+
2057
+ </div>
2058
+ </div>
2059
+ <div class="tags">
2060
+
2061
+
2062
+ </div><table class="source_code">
2063
+ <tr>
2064
+ <td>
2065
+ <pre class="lines">
2066
+
2067
+
2068
+ 186
2069
+ 187
2070
+ 188</pre>
2071
+ </td>
2072
+ <td>
2073
+ <pre class="code"><span class="info file"># File 'lib/webview/dashboard.rb', line 186</span>
2074
+
2075
+ <span class='kw'>def</span> <span class='id identifier rubyid_title='>title=</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='rparen'>)</span>
2076
+ <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_title'>title</span><span class='op'>=</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='rparen'>)</span>
2077
+ <span class='kw'>end</span></pre>
2078
+ </td>
2079
+ </tr>
2080
+ </table>
2081
+ </div>
2082
+
2083
+ </div>
2084
+
2085
+ </div>
2086
+
2087
+ <div id="footer">
2088
+ Generated on Tue Jul 14 18:09:14 2015 by
2089
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2090
+ 0.8.7.6 (ruby-1.9.3).
2091
+ </div>
2092
+
2093
+ </body>
2094
+ </html>