mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04:00
chore(explore): Change labels "Group by"/"Series" to "Dimensions" (#19647)
This commit is contained in:
parent
2ba484fe43
commit
de9fb2109d
@ -28,7 +28,7 @@ import { TIME_COLUMN_OPTION, TIME_FILTER_LABELS } from '../constants';
|
|||||||
|
|
||||||
export const dndGroupByControl: SharedControlConfig<'DndColumnSelect'> = {
|
export const dndGroupByControl: SharedControlConfig<'DndColumnSelect'> = {
|
||||||
type: 'DndColumnSelect',
|
type: 'DndColumnSelect',
|
||||||
label: t('Group by'),
|
label: t('Dimensions'),
|
||||||
default: [],
|
default: [],
|
||||||
description: t(
|
description: t(
|
||||||
'One or many columns to group by. High cardinality groupings should include a series limit ' +
|
'One or many columns to group by. High cardinality groupings should include a series limit ' +
|
||||||
@ -58,7 +58,7 @@ export const dndColumnsControl: typeof dndGroupByControl = {
|
|||||||
|
|
||||||
export const dndSeries: typeof dndGroupByControl = {
|
export const dndSeries: typeof dndGroupByControl = {
|
||||||
...dndGroupByControl,
|
...dndGroupByControl,
|
||||||
label: t('Series'),
|
label: t('Dimensions'),
|
||||||
multi: false,
|
multi: false,
|
||||||
default: null,
|
default: null,
|
||||||
description: t(
|
description: t(
|
||||||
|
@ -103,7 +103,7 @@ type SelectDefaultOption = {
|
|||||||
|
|
||||||
const groupByControl: SharedControlConfig<'SelectControl', ColumnMeta> = {
|
const groupByControl: SharedControlConfig<'SelectControl', ColumnMeta> = {
|
||||||
type: 'SelectControl',
|
type: 'SelectControl',
|
||||||
label: t('Group by'),
|
label: t('Dimensions'),
|
||||||
multi: true,
|
multi: true,
|
||||||
freeForm: true,
|
freeForm: true,
|
||||||
clearable: true,
|
clearable: true,
|
||||||
@ -403,7 +403,7 @@ const sort_by: SharedControlConfig<'MetricsControl'> = {
|
|||||||
|
|
||||||
const series: typeof groupByControl = {
|
const series: typeof groupByControl = {
|
||||||
...groupByControl,
|
...groupByControl,
|
||||||
label: t('Series'),
|
label: t('Dimensions'),
|
||||||
multi: false,
|
multi: false,
|
||||||
default: null,
|
default: null,
|
||||||
description: t(
|
description: t(
|
||||||
|
@ -106,7 +106,7 @@ const config: ControlPanelConfig = {
|
|||||||
],
|
],
|
||||||
controlOverrides: {
|
controlOverrides: {
|
||||||
groupby: {
|
groupby: {
|
||||||
label: t('Series'),
|
label: t('Dimensions'),
|
||||||
validators: [validateNonEmpty],
|
validators: [validateNonEmpty],
|
||||||
mapStateToProps: (state, controlState) => {
|
mapStateToProps: (state, controlState) => {
|
||||||
const groupbyProps =
|
const groupbyProps =
|
||||||
|
@ -125,7 +125,7 @@ const config: ControlPanelConfig = {
|
|||||||
],
|
],
|
||||||
controlOverrides: {
|
controlOverrides: {
|
||||||
groupby: {
|
groupby: {
|
||||||
label: t('Series'),
|
label: t('Dimensions'),
|
||||||
description: t('Categories to group by on the x-axis.'),
|
description: t('Categories to group by on the x-axis.'),
|
||||||
},
|
},
|
||||||
columns: {
|
columns: {
|
||||||
|
@ -39,7 +39,7 @@ const config: ControlPanelConfig = {
|
|||||||
name: 'groupby',
|
name: 'groupby',
|
||||||
config: {
|
config: {
|
||||||
...sharedControls.groupby,
|
...sharedControls.groupby,
|
||||||
label: t('Group by'),
|
label: t('Dimensions'),
|
||||||
description: t('Columns to group by'),
|
description: t('Columns to group by'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -120,7 +120,7 @@ const groupByControl = {
|
|||||||
type: 'SelectControl',
|
type: 'SelectControl',
|
||||||
multi: true,
|
multi: true,
|
||||||
freeForm: true,
|
freeForm: true,
|
||||||
label: t('Group by'),
|
label: t('Dimensions'),
|
||||||
default: [],
|
default: [],
|
||||||
includeTime: false,
|
includeTime: false,
|
||||||
description: t(
|
description: t(
|
||||||
@ -393,7 +393,7 @@ export const controls = {
|
|||||||
|
|
||||||
series: {
|
series: {
|
||||||
...groupByControl,
|
...groupByControl,
|
||||||
label: t('Series'),
|
label: t('Dimensions'),
|
||||||
multi: false,
|
multi: false,
|
||||||
default: null,
|
default: null,
|
||||||
description: t(
|
description: t(
|
||||||
|
Loading…
Reference in New Issue
Block a user