mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Fix month display showing "invalid date" on totals graph.
Make duration on home stats human readable.
This commit is contained in:
parent
7e8a427107
commit
2536fdf17b
2 changed files with 25 additions and 17 deletions
|
@ -458,12 +458,8 @@
|
|||
data: { y_axis: yaxis },
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
var dateArray = [];
|
||||
for (var i = 0; i < data.categories.length; i++) {
|
||||
dateArray.push(moment(data.categories[i], 'YYYY-MM').format('MMM YYYY'));
|
||||
}
|
||||
hc_plays_by_month_options.yAxis.min = 0;
|
||||
hc_plays_by_month_options.xAxis.categories = dateArray;
|
||||
hc_plays_by_month_options.xAxis.categories = data.categories;
|
||||
hc_plays_by_month_options.series = data.series;
|
||||
var hc_plays_by_month = new Highcharts.Chart(hc_plays_by_month_options);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue