Changeset 17812
- Timestamp:
- 05/09/14 16:32:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/viewer/index.js
r17811 r17812 461 461 { 462 462 var canv = document.getElementById("camera"+n); 463 canv.dataRel = null; 464 465 if (!Array.isArray(data)) 466 return; 463 467 464 468 canv.dataAbs = new Array(1440); … … 466 470 { 467 471 var val = data[map[i]]; 468 if (!isNaN(val) )472 if (!isNaN(val) && val!==null) 469 473 canv.dataAbs[i] = val; 470 474 } … … 1276 1280 return; 1277 1281 1278 var lvl = (col-min)/(max-min);1282 var lvl = max==min ? 0.5 : (col-min)/(max-min); 1279 1283 1280 1284 ctx.fillStyle = "#"+HLStoRGB(lvl);
Note:
See TracChangeset
for help on using the changeset viewer.