From 30b372b4d27c6073922316da36c8b8ccc4a8ab76 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 8 Jun 2016 10:18:02 +0200 Subject: [PATCH] fixed colour vertical charts. Ticket #3270. --- pandora_console/include/graphs/flot/pandora.flot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index 0eb12c3eb2..326ea5c253 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -539,7 +539,7 @@ function pandoraFlotVBars(graph_id, values, labels, labels_long, legend, colors, legend = legend.split(separator); labels_long = labels_long.split(separator); //colors = colors.split(separator); - var colors_data = ['#FC4444','#FFA631','#FAD403','#5BB6E5','#F2919D','#80BA27']; + var colors_data = ['#FFA631','#FC4444','#FAD403','#5BB6E5','#F2919D','#80BA27']; var datas = new Array(); for (i = 0; i < values.length; i++) { @@ -552,7 +552,7 @@ function pandoraFlotVBars(graph_id, values, labels, labels_long, legend, colors, aux.push([aux2, j]); datas.push( { data: [[j, aux2]], - color: colors_data[j] + color: colors_data[0] }); }; }