Commit 03f83da6 authored by sebastien letort's avatar sebastien letort

Little code simplification, PerStatePlot more similar to PerUserPlot.

parent 29d3d1b3
......@@ -265,16 +265,9 @@ class PerStatePlot extends Metrics
{
let status = l_labels[i];
let l_res = [];
for( let j=0; j<l_periods.length; ++j )
{
let tp = l_periods[j];
l_res.push( d_data[tp][status] );
}
chartjs_data.datasets[i] =
{
data : l_res,
data : l_periods.map( x => d_data[x][status] ),
label: status.toLowerCase(),
fill : false,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment