changeset 8249:01591e4b1ac8

js: simplify statistics.html
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 16 Feb 2020 03:20:44 +0100
parents 4a0386c40504
children 1f3e993156e4
files kallithea/templates/summary/statistics.html
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/summary/statistics.html	Fri Feb 14 14:45:56 2020 +0100
+++ b/kallithea/templates/summary/statistics.html	Sun Feb 16 03:20:44 2020 +0100
@@ -145,8 +145,6 @@
     for(var key in overview_dataset){
       overview_dataset[key][0] *= 1000;
     }
-    var dataset = dataset;
-    var overview_dataset = [overview_dataset];
     var choiceContainer = $("#legend_choices")[0];
     var choiceContainerTable = $("#legend_choices_tables")[0];
     var $plotContainer = $('#commit_history');
@@ -439,7 +437,7 @@
     var plot = $.plot(plotContainer,data,plot_options);
 
     //overview
-    var overview = $.plot(overviewContainer, overview_dataset, overview_options);
+    var overview = $.plot(overviewContainer, [overview_dataset], overview_options);
 
     //show initial selection on overview
     overview.setSelection(initial_ranges);