From fa6c44b12a9ed87c8bf5cb2845c6bea206a074be Mon Sep 17 00:00:00 2001 From: Oscar Kilhed Date: Thu, 23 Sep 2021 14:21:31 +0200 Subject: [PATCH] Remove ? as header for piechart table legend (#39521) (#39571) (cherry picked from commit 71122930b916c0923b2160f2fd108a4c046827be) --- public/app/plugins/panel/piechart/PieChartPanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/panel/piechart/PieChartPanel.tsx b/public/app/plugins/panel/piechart/PieChartPanel.tsx index 8e93d529262..b8e87a8cd72 100644 --- a/public/app/plugins/panel/piechart/PieChartPanel.tsx +++ b/public/app/plugins/panel/piechart/PieChartPanel.tsx @@ -124,7 +124,7 @@ function getLegend(props: Props, displayValues: FieldDisplay[]) { hidden || isNaN(fractionOfTotal) ? props.fieldConfig.defaults.noValue ?? '-' : percentOfTotal.toFixed(0) + '%', - title: valuesToShow.length > 1 ? 'Percent' : undefined, + title: valuesToShow.length > 1 ? 'Percent' : '', }); }