Skip to content

Commit

Permalink
feat(chart & legend): make to enable show legend by default (#19927)
Browse files Browse the repository at this point in the history
  • Loading branch information
prosdev0107 authored May 2, 2022
1 parent 8b6e582 commit 7b3d0f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)'),
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)'),
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)'),
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }>;
Expand Down

0 comments on commit 7b3d0f0

Please sign in to comment.