# HG changeset patch # User domruf # Date 2017-08-22 21:10:14 # Node ID 9f19d1fa14741ea837d487a3128c1a067c5438a7 # Parent 6dd14c834acfc5b392858c96f346520b9e50501a statistics: hide checkboxes, instead click on user names directly This look much better. The now hidden checkboxes are still used to store the status. TODO: maybe we'll find a better cleaner way to do this in the future diff --git a/kallithea/templates/summary/statistics.html b/kallithea/templates/summary/statistics.html --- a/kallithea/templates/summary/statistics.html +++ b/kallithea/templates/summary/statistics.html @@ -158,7 +158,13 @@ function SummaryPlot(from,to,dataset,ove var plot_options = { bars: {show:true, align: 'center', lineWidth: 4}, - legend: {show:true, container: "#legend_container"}, + legend: {show:true, + container: "#legend_container", + labelFormatter: function(label, series) { + // series is the series object for the label + return ' ' + label + ''; + } + }, points: {show:true, radius: 0, fill: false}, yaxis: {tickDecimals: 0}, xaxis: { @@ -216,7 +222,7 @@ function SummaryPlot(from,to,dataset,ove i++; if(data[pos].label != ''){ choiceContainerTable.innerHTML += - '