|
44 | 44 | <div id="tables-2" style="display: inline-block; width: 550px; height: 300px; margin: 10px; background-color: white"></div>
|
45 | 45 | <div id="tables-1" style="display: inline-block; width: 550px; height: 300px; margin: 10px; background-color: white; position: absolute"></div>
|
46 | 46 | </div>
|
47 |
| -<div id="xyPlot1" style="display: inline-block; width: 550px; height: 300px; margin: 10px; background-color: white"></div> |
48 |
| -<div id="xyPlot2" style="display: inline-block; width: 550px; height: 300px; margin: 10px; background-color: white; position: absolute"></div> |
| 47 | +<div>XYPlot from API calls: |
| 48 | + <a href='javascript:firefly.getViewer().showXYPlot(xyPlotOpsReq3)'>Show XY Plot</a> |
| 49 | +</div> |
| 50 | +<div> |
| 51 | + <div id="xyPlot1" style="display: inline-block; width: 550px; height: 300px; margin: 10px; background-color: white"></div> |
| 52 | + <div id="xyPlot2" style="display: inline-block; width: 550px; height: 300px; margin: 10px; background-color: white; position: absolute"></div> |
| 53 | +</div> |
| 54 | +<div>XYPlot from API calls: |
| 55 | + <a href='javascript:firefly.getViewer().showHistogram(histogramOpsReq3)'>Show Histogram</a> |
| 56 | +</div> |
| 57 | +<div> |
| 58 | + <div id="histogram1" style="display: inline-block; width: 550px; height: 300px; margin: 10px; background-color: white"></div> |
| 59 | + <div id="histogram2" style="display: inline-block; width: 550px; height: 300px; margin: 10px; background-color: white; position: absolute"></div> |
| 60 | +</div> |
49 | 61 | <div>Tables from deprecated API calls:</div>
|
50 | 62 | <div>
|
51 | 63 | <div id="oldSelectable" style="display: inline-block; width: 550px; height: 300px; margin: 10px; background-color: white"></div>
|
|
200 | 212 | META_INFO: {CENTER_COLUMN: 'crval1;crval2;EQJ2000'}
|
201 | 213 | });
|
202 | 214 |
|
| 215 | + |
203 | 216 | firefly.showTable('tables-1', tblReq1);
|
204 | 217 | firefly.showTable('tables-1', tblReq3);
|
205 | 218 | firefly.showTable('tables-2', tblReq2, {removable: false, showUnits: true, showFilters: true});
|
206 | 219 | //----------------- CHART DEMO ------------------------//
|
207 | 220 | //--- using QUERY_ID: 'upload' does not work getActiveTableId('upload') returns undefined ---//
|
208 |
| - firefly.addXYPlot('xyPlot1', {tbl_id: tblReq2.tbl_id, xCol: 'ra', yCol: 'dec', help_id: 'visualization.xyplotViewer'}); |
209 |
| - firefly.addXYPlot('xyPlot2', {tbl_id: tblReq2.tbl_id, xCol: 'w1mpro+w4mpro', yCol: 'w2mpro'}); |
| 221 | + xyPlotOpsReq3 = {source: 'http://web.ipac.caltech.edu/staff/roby/demo/WiseDemoTable.tbl', xCol: 'ra1', yCol: 'dec1'}; |
| 222 | + firefly.showXYPlot('xyPlot1', {tbl_id: tblReq2.tbl_id, xCol: 'ra', yCol: 'dec', help_id: 'visualization.xyplotViewer'}); |
| 223 | + firefly.showXYPlot('xyPlot2', {tbl_id: tblReq2.tbl_id, xCol: 'w1mpro+w4mpro', yCol: 'w2mpro'}); |
| 224 | + histogramOpsReq3 = {source: 'http://web.ipac.caltech.edu/staff/roby/demo/WiseDemoTable.tbl', col: 'modeint', xOptions: 'log'}; |
| 225 | + firefly.showHistogram('histogram1', {tbl_id: tblReq2.tbl_id, col: 'w1mpro'}); |
| 226 | + firefly.showHistogram('histogram2', {tbl_id: tblReq2.tbl_id, col: 'w2mpro+w3mpro', falsePositiveRate: 0.05}); |
| 227 | + |
210 | 228 |
|
211 | 229 | //-----< old table api ------//
|
212 | 230 | var tblParams = {
|
|
427 | 445 | </script>
|
428 | 446 |
|
429 | 447 |
|
430 |
| -<script type="text/javascript" src="../firefly_loader.js"></script> |
| 448 | +<script type="text/javascript" src="http://localhost:8080/firefly/firefly_loader.js"></script> |
431 | 449 |
|
432 | 450 |
|
0 commit comments