fix(chart controls): remove duplicated descriptions for chart controls (#33954)

This commit is contained in:
Vladislav Korenkov
2025-07-04 05:01:59 +10:00
committed by GitHub
parent 09c657c899
commit d1b372f670
3 changed files with 0 additions and 12 deletions

View File

@@ -122,7 +122,6 @@ const config: ControlPanelConfig = {
label: t('X Axis Title'),
renderTrigger: true,
default: '',
description: t('Changing this control takes effect instantly'),
},
},
],
@@ -148,7 +147,6 @@ const config: ControlPanelConfig = {
label: t('Y Axis Title'),
renderTrigger: true,
default: '',
description: t('Changing this control takes effect instantly'),
},
},
],

View File

@@ -72,7 +72,6 @@ function createAxisTitleControl(axis: 'x' | 'y'): ControlSetRow[] {
label: t('Axis Title'),
renderTrigger: true,
default: '',
description: t('Changing this control takes effect instantly'),
visibility: ({ controls }: ControlPanelsContainerProps) =>
isXAxis ? isVertical(controls) : isHorizontal(controls),
disableStash: true,
@@ -91,7 +90,6 @@ function createAxisTitleControl(axis: 'x' | 'y'): ControlSetRow[] {
renderTrigger: true,
default: sections.TITLE_MARGIN_OPTIONS[0],
choices: formatSelectOptions(sections.TITLE_MARGIN_OPTIONS),
description: t('Changing this control takes effect instantly'),
visibility: ({ controls }: ControlPanelsContainerProps) =>
isXAxis ? isVertical(controls) : isHorizontal(controls),
disableStash: true,
@@ -107,7 +105,6 @@ function createAxisTitleControl(axis: 'x' | 'y'): ControlSetRow[] {
label: t('Axis Title'),
renderTrigger: true,
default: '',
description: t('Changing this control takes effect instantly'),
visibility: ({ controls }: ControlPanelsContainerProps) =>
isXAxis ? isHorizontal(controls) : isVertical(controls),
disableStash: true,
@@ -126,7 +123,6 @@ function createAxisTitleControl(axis: 'x' | 'y'): ControlSetRow[] {
renderTrigger: true,
default: sections.TITLE_MARGIN_OPTIONS[1],
choices: formatSelectOptions(sections.TITLE_MARGIN_OPTIONS),
description: t('Changing this control takes effect instantly'),
visibility: ({ controls }: ControlPanelsContainerProps) =>
isXAxis ? isHorizontal(controls) : isVertical(controls),
disableStash: true,
@@ -145,7 +141,6 @@ function createAxisTitleControl(axis: 'x' | 'y'): ControlSetRow[] {
renderTrigger: true,
default: sections.TITLE_POSITION_OPTIONS[0][0],
choices: sections.TITLE_POSITION_OPTIONS,
description: t('Changing this control takes effect instantly'),
visibility: ({ controls }: ControlPanelsContainerProps) =>
isXAxis ? isHorizontal(controls) : isVertical(controls),
disableStash: true,