- Timestamp:
- 03/25/16 12:47:31 (9 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/wwwroot/js/Scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/wwwroot/js/Scripts/Graphs/GraphDataCollector.js
r13733 r13735 51 51 } 52 52 function dataConversion(coll, name) { 53 var line = dataConversionLine(coll, name);53 var line = null;//dataConversionLine(coll, name); 54 54 var pie = dataConversionPie(coll); 55 55 var gantt = dataConversionGantt(coll, name); … … 93 93 return [tasks, nam]; 94 94 } 95 /* 95 96 function dataConversionLine(coll, nam) { 96 97 var xarr = []; … … 140 141 141 142 return [data, layout]; 142 } 143 }*/ 143 144 144 145 function dataConversionPie(coll) { … … 163 164 'Minutes transferring', 164 165 'Minutes calculating'], 165 type: 'pie' 166 type: 'pie', 167 marker: { 168 colors: ['#f0a742', '#80d4ff', '#2f6fa6'] 169 } 166 170 }]; 167 171 return datap; … … 178 182 var temp = getDataGantt(val); 179 183 var w = $("#graph" + val).parent().width() - 30; 180 document.getElementById("graph" + val).style.height = " 200px";184 document.getElementById("graph" + val).style.height = "300px"; 181 185 var gantt = d3.gantt().selector('#graph' + val).height('200').width(w).margin({ 182 186 top: 20, … … 185 189 left: 20 186 190 }).drawytitles(false).taskTypes([temp[1]]).taskStatus(taskStatus); 187 // document.getElementById("graph" + val).style.marginLeft = "-40px";188 191 gantt(temp[0]); 192 document.getElementById("legend" + val).style.display = ""; 189 193 }, 100); 190 194 … … 195 199 // console.log("#REDRAWN LINE: " + val); 196 200 } else { 201 document.getElementById("legend" + val).style.display = "none"; 197 202 setTimeout(function () { 198 203 Plotly.newPlot('graph' + val, getDataPie(val)); … … 226 231 document.getElementById("graphMain").style.marginLeft = "20px"; 227 232 gantt(tempdata); 233 234 228 235 /* LINE VERSION 229 236 var temp = []; -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/wwwroot/js/Scripts/hubber.js
r13733 r13735 23 23 24 24 var jobname = document.getElementById("jname").value; 25 var resource = document.getElementById("jresource").value; 25 26 if (jobname && jobname != "" && jobname != null) { 26 hubber.server.changeName (jobname);27 hubber.server.changeNameResource(jobname, resource); 27 28 document.getElementById("fakehiveadd").style.display = "none"; 28 29 document.getElementById("progdiv").style.display = ""; … … 40 41 else 41 42 $("#childs" + idchilds).css("display", "none"); 43 $('body').click(); 42 44 } 43 45 function changePriority(arr, prior, idprior) {
Note: See TracChangeset
for help on using the changeset viewer.