Skip to content

Commit

Permalink
feat(chart & legend): make to enable show legend by default (apache#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
prosdev0107 authored and philipher29 committed Jun 9, 2022
1 parent 84bc963 commit 09671a4
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 09671a4

Please sign in to comment.