From ac260ea453df8c6e53fa9469df52323827857e85 Mon Sep 17 00:00:00 2001 From: Felix Krause Date: Tue, 15 Mar 2022 17:48:42 +0100 Subject: [PATCH] Disable label for ranges in pie charts --- 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 95249f1..8dbf09a 100644 --- a/visual_playground/frontend/pie_chart.js +++ b/visual_playground/frontend/pie_chart.js @@ -191,7 +191,7 @@ function renderPieHistoryChart(yearsData, key, groupByMonth, nodeId) { name: i, type: 'bar', textposition: 'inside', - text: i, + text: (numberOfValues > 6) ? i : null, // those graphs look nicer without the number marker: (colorToUse ? { color: colorToUse, } : {})