# HG changeset patch # User Mads Kiilerich # Date 1581819644 -3600 # Node ID 01591e4b1ac81b7295c61ab8bdb097900ddfd48a # Parent 4a0386c40504c2d04a195873da95b869f6e3a267 js: simplify statistics.html diff -r 4a0386c40504 -r 01591e4b1ac8 kallithea/templates/summary/statistics.html --- 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);