Graphs now have the option to show duration as well as play count.

This commit is contained in:
Tim 2015-08-08 13:34:36 +02:00
parent 94d2d04bf9
commit c28d403186
10 changed files with 773 additions and 126 deletions

View file

@ -47,15 +47,6 @@ var hc_plays_by_day_options = {
}
},
tooltip: {
formatter: function() {
var monthStr = moment(this.x).format("ddd MMM D");
var s = '<b>'+ monthStr +'</b>';
$.each(this.points, function(i, point) {
s += '<br/>'+point.series.name+': '+point.y;
});
return s;
},
shared: true
},
series: [{}]

View file

@ -49,7 +49,7 @@ var hc_plays_by_dayofweek_options = {
}
},
tooltip: {
shared: true
},
series: [{}]
};

View file

@ -49,7 +49,7 @@ var hc_plays_by_hourofday_options = {
}
},
tooltip: {
shared: true
},
series: [{}]
};

View file

@ -65,15 +65,6 @@ var hc_plays_by_month_options = {
}
},
tooltip: {
formatter: function() {
var monthStr = moment(this.x).format("MMM YYYY");
var s = '<b>'+ monthStr +'</b>';
$.each(this.points, function(i, point) {
s += '<br/>'+point.series.name+': '+point.y;
});
return s;
},
shared: true
},
series: [{}]

View file

@ -49,7 +49,7 @@ var hc_plays_by_platform_options = {
}
},
tooltip: {
shared: true
},
series: [{}]
};

View file

@ -49,7 +49,7 @@ var hc_plays_by_user_options = {
}
},
tooltip: {
shared: true
},
series: [{}]
};