From af9340ed338fd69e6d49d78ef2260d80fafb50d1 Mon Sep 17 00:00:00 2001 From: Irina Kuzmina Date: Tue, 17 Dec 2024 18:25:04 +0300 Subject: [PATCH] Fix axis visibility (#1950) --- src/ui/constants/visualizations/line.ts | 6 ++++++ src/ui/constants/visualizations/scatter.ts | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/ui/constants/visualizations/line.ts b/src/ui/constants/visualizations/line.ts index e1dd307382..ba27fa5a0d 100644 --- a/src/ui/constants/visualizations/line.ts +++ b/src/ui/constants/visualizations/line.ts @@ -183,6 +183,7 @@ export const AREA_VISUALIZATION: GraphShared['visualization'] = { holidays: 'off', axisFormatMode: 'auto', axisModeMap: {}, + axisVisibility: 'show', }, transform: prepareFieldToDimensionTransformation, }, @@ -209,6 +210,7 @@ export const AREA_VISUALIZATION: GraphShared['visualization'] = { labelsView: 'auto', nulls: AxisNullsMode.AsZero, axisFormatMode: 'auto', + axisVisibility: 'show', }, transform: prepareFieldToMeasureTransformation, }, @@ -279,6 +281,7 @@ export const COLUMN_VISUALIZATION: GraphShared['visualization'] = { holidays: 'off', axisFormatMode: 'auto', axisModeMap: {}, + axisVisibility: 'show', }, transform: prepareFieldToDimensionTransformation, }, @@ -305,6 +308,7 @@ export const COLUMN_VISUALIZATION: GraphShared['visualization'] = { labelsView: 'auto', nulls: AxisNullsMode.Ignore, axisFormatMode: 'auto', + axisVisibility: 'show', }, transform: prepareFieldToMeasureTransformation, }, @@ -367,6 +371,7 @@ export const BAR_VISUALIZATION: GraphShared['visualization'] = { labelsView: 'auto', axisFormatMode: 'auto', axisModeMap: {}, + axisVisibility: 'show', }, transform: prepareFieldToDimensionTransformation, }, @@ -394,6 +399,7 @@ export const BAR_VISUALIZATION: GraphShared['visualization'] = { nulls: AxisNullsMode.Ignore, holidays: 'off', axisFormatMode: 'auto', + axisVisibility: 'show', }, transform: prepareFieldToMeasureTransformation, }, diff --git a/src/ui/constants/visualizations/scatter.ts b/src/ui/constants/visualizations/scatter.ts index e2a762ea3c..fd3929791e 100644 --- a/src/ui/constants/visualizations/scatter.ts +++ b/src/ui/constants/visualizations/scatter.ts @@ -63,6 +63,7 @@ export const SCATTER_VISUALIZATION: GraphShared['visualization'] = { holidays: 'off', axisFormatMode: 'auto', axisModeMap: {}, + axisVisibility: 'show', }, }, { @@ -88,6 +89,7 @@ export const SCATTER_VISUALIZATION: GraphShared['visualization'] = { hideLabels: 'no', labelsView: 'auto', axisFormatMode: 'auto', + axisVisibility: 'show', }, onChange: onMeasureAxisChange, },