Changeset - 01591e4b1ac8
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2020-02-16 03:20:44
mads@kiilerich.com
Grafted from: ddaecbdccd8d
js: simplify statistics.html
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/summary/statistics.html
Show inline comments
 
@@ -142,14 +142,12 @@ function SummaryPlot(from,to,dataset,ove
 
        data[d].time *= 1000;
 
      }
 
    }
 
    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');
 
    var plotContainer = $('#commit_history')[0];
 
    var $overviewContainer = $('#overview');
 
    var overviewContainer = $('#overview')[0];
 
@@ -436,13 +434,13 @@ function SummaryPlot(from,to,dataset,ove
 
    generateCheckboxes(data);
 

	
 
    //main plot
 
    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);
 

	
 
    $plotContainer.on("plotselected", plotselected);
 
    $plotContainer.on("plothover", plothover);
0 comments (0 inline, 0 general)