format: function(orig) { // format data for normalization // console.log(orig); val = orig.replace(/ns/,''); if (val != orig) { return val / (1000*1000*1000); } val = orig.replace(/µs/,''); /* XXX use µ ? */ if (val != orig) { return val / (1000*1000); } var val = orig.replace(/ms/,''); if (val != orig) { return val / (1000); } var val = orig.replace(/s/,''); ######## <<<<<<<<<<<<<< if (val != orig) { return val; } if (orig == '0') { return orig; } console.log('no match for fmt_time of '.concat(orig)); return orig; },