Commit 9c3388c0 authored by sebastien letort's avatar sebastien letort

'launchedplot' modified. The title in now 'jobs created', to better understand...

'launchedplot' modified. The title in now 'jobs created', to better understand the difference with the graph per_user. Also line are now linear, this prevent some strange display where the line could go back to the left and make what look like loop.
parent 09189124
Pipeline #65850 failed with stage
......@@ -295,11 +295,15 @@ class LaunchedPlot extends Metrics
{
super( app_name, d_app );
this.title = [
"# jobs launched for " + app_name + " app.",
"# jobs created for " + app_name + " app.",
"Time period : " + d_app['from'] + " - " + d_app['to']
];
this.type = 'line';
this.d_legend.display = false;
this.options = {
lineTension: 0
};
}
_setChartjsData( l_data )
......@@ -314,7 +318,10 @@ class LaunchedPlot extends Metrics
d_data[tp] = val; // by construction there should be no collision.
}
let chartjs_data = { labels: l_periods, datasets: [ { data:[] } ] };
let chartjs_data = {
labels: l_periods,
datasets: [ { data:[], lineTension: 0 } ]
};
for( let i=0; i<l_periods.length; ++i )
{
......
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