fix legend toggle for line and bar charts (#16120)
This commit is contained in:
+3
-1
@@ -240,7 +240,9 @@ export const useChartSettingsValues = ({
|
||||
? getDateGranularityLabel(configuration.dateGranularity)
|
||||
: undefined;
|
||||
case CHART_CONFIGURATION_SETTING_IDS.SHOW_LEGEND:
|
||||
return isPieChart ? (configuration.displayLegend ?? true) : true;
|
||||
return isBarOrLineChart || isPieChart
|
||||
? (configuration.displayLegend ?? true)
|
||||
: true;
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user