From 6bd7ca662e4a51db086f96b4d68722e0bfe05016 Mon Sep 17 00:00:00 2001 From: Felix Krause Date: Tue, 15 Mar 2022 17:48:33 +0100 Subject: [PATCH] Fix inverse mode for pie chart graphs --- visual_playground/frontend/pie_chart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visual_playground/frontend/pie_chart.js b/visual_playground/frontend/pie_chart.js index 1e4e6bd..95249f1 100644 --- a/visual_playground/frontend/pie_chart.js +++ b/visual_playground/frontend/pie_chart.js @@ -182,7 +182,7 @@ function renderPieHistoryChart(yearsData, key, groupByMonth, nodeId) { let colorToUse = null; if (colors) { - colorToUse = invertedColors ? colors[numberOfValues - i] : colors[i] + colorToUse = invertedColors ? colors[numberOfValues - 1 - i] : colors[i] } data.push({