feat(chart & legend): make to enable show legend by default (#19927)

This commit is contained in:
smileydev
2022-05-02 16:37:11 -04:00
committed by GitHub
parent 8b6e582211
commit 7b3d0f040b
4 changed files with 4 additions and 4 deletions

View File

@@ -274,7 +274,7 @@ const config: ControlPanelConfig = {
type: 'CheckboxControl',
label: t('Legend'),
renderTrigger: true,
default: false,
default: true,
description: t('Whether to display the legend (toggles)'),
},
},

View File

@@ -128,7 +128,7 @@ const config: ControlPanelConfig = {
type: 'CheckboxControl',
label: t('Legend'),
renderTrigger: true,
default: false,
default: true,
description: t('Whether to display the legend (toggles)'),
},
},

View File

@@ -148,7 +148,7 @@ export const showLegend: CustomControlItem = {
type: 'CheckboxControl',
label: t('Legend'),
renderTrigger: true,
default: false,
default: true,
description: t('Whether to display the legend (toggles)'),
},
};

View File

@@ -87,7 +87,7 @@ export const DEFAULT_LEGEND_FORM_DATA: EchartsLegendFormData = {
legendMargin: null,
legendOrientation: LegendOrientation.Top,
legendType: LegendType.Scroll,
showLegend: false,
showLegend: true,
};
export type EventHandlers = Record<string, { (props: any): void }>;