Remove ? as header for piechart table legend (#39521)

This commit is contained in:
Oscar Kilhed
2021-09-23 10:41:35 +02:00
committed by GitHub
parent 4a6e354497
commit 71122930b9

View File

@@ -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' : '',
});
}