Changeset 277 for Dev/branches/Cartis/dashboardOverview.php
- Timestamp:
- 02/21/12 15:06:09 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/Cartis/dashboardOverview.php
r276 r277 24 24 <script src="rGraph/libraries/RGraph.rose.js"></script> 25 25 26 <script>27 myGraph.Set('chart.contextmenu', [28 ['Get PNG', RGraph.showPNG],29 null,30 ['Cancel', function () {}]31 ]);32 </script>33 26 34 27 <script> … … 39 32 var inputData = JSON.parse(dataIn); 40 33 34 window.charts = []; 41 35 42 36 for (var n = 0; n < inputData.count; n++) { 43 drawGraph(inputData.graphs[n][0], inputData.graphs[n][1], inputData.graphs[n][2], inputData.graphs[n][3], inputData.graphs[n][4]) 37 var name = inputData.graphs[n][0]; 38 var chart = drawGraph(name, inputData.graphs[n][1], inputData.graphs[n][2], inputData.graphs[n][3], inputData.graphs[n][4]); 39 charts.push(chart); 44 40 } 41 42 var el = ce("div"); 43 el.className = "floatClearer"; 44 ge("graphDisplay").appendChild(el); 45 /* 46 for (var n = 0; n < window.charts.length; n++) { 47 // set context menu 48 charts[n].Set('chart.contextmenu', [ 49 ['View graph fullscreen', RGraph.showPNG], 50 null, 51 ['Cancel', function() {}] 52 ]); 53 } 54 */ 55 debugger; 56 var canvases = document.getElementsByTagName("canvas"); 57 for (var n = 0; n < canvases.length; n++) { 58 canvases[n].addEventListener("click", function(event) { 59 debugger; 60 RGraph.showPNG(event.target, event); 61 //var div = ge("__rgraph_image_div__"); 62 //div.style.width = "800px"; 63 //div.style.height = "600px"; 64 //var img = ge("__rgraph_image_img__"); 65 //img.style.width = "800px"; 66 //img.style.height = "600px"; 67 }, true); 68 } 69 45 70 } 46 71 </script> … … 66 91 <div id="leftColumn"> 67 92 68 <div class="largeFrame C" id="dbDataSelector">93 <div class="largeFrame C" style="height: auto; max-height: none;"> 69 94 70 95 <div class="largeTitle">Dashboard Overview</div> … … 85 110 </div> 86 111 </div> 87 <a href="dashboardDataSelection.php">Naar dataselection</a>"88 112 89 113 </body>
Note: See TracChangeset
for help on using the changeset viewer.