Commit 9d98fa5a authored by Marc Duez's avatar Marc Duez

export.js : reads stat for sample report

parent 2cfc7cb8
......@@ -34,6 +34,7 @@ Report.prototype = {
this.w.onload = function(){
self.info()
.sampleInfo(m.t)
.readsStat(m.t)
for (var i=0; i<m.system_selected.length; i++){
var system = m.system_selected[i]
self.addScatterplot(system, m.t)
......@@ -235,7 +236,8 @@ Report.prototype = {
return this
},
readsStat: function() {
readsStat: function(time) {
if (typeof time == "undefined") time = -1
var container = this.container('Reads statistics')
var reads_stats = $('<div/>', {class: 'flex'}).appendTo(container);
......@@ -253,9 +255,21 @@ Report.prototype = {
}
}
if (time == -1){
for (var i=0; i<m.samples.order.length; i++){
var time = m.samples.order[i]
var t = m.samples.order[i]
var box=this.readsStat2(t)
box.appendTo(reads_stats);
}
}else{
var box=this.readsStat2(time)
box.appendTo(reads_stats);
}
return this;
},
readsStat2: function (time){
var box = $('<div/>', {class: 'float-left'})
$('<div/>', {class: 'case centered', text : m.getStrTime(time)}).appendTo(box);
$('<div/>', {class: 'case centered', text : m.toStringThousands(m.reads.total[time])}).appendTo(box);
......@@ -281,10 +295,7 @@ Report.prototype = {
pie_chart.append(p)
}
box.appendTo(reads_stats);
}
return this;
return box
},
systemPie: function(time) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment