Skip to content

Commit

Permalink
Fix axis visibility (#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmadom authored Dec 17, 2024
1 parent dbd65d5 commit af9340e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ui/constants/visualizations/line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export const AREA_VISUALIZATION: GraphShared['visualization'] = {
holidays: 'off',
axisFormatMode: 'auto',
axisModeMap: {},
axisVisibility: 'show',
},
transform: prepareFieldToDimensionTransformation,
},
Expand All @@ -209,6 +210,7 @@ export const AREA_VISUALIZATION: GraphShared['visualization'] = {
labelsView: 'auto',
nulls: AxisNullsMode.AsZero,
axisFormatMode: 'auto',
axisVisibility: 'show',
},
transform: prepareFieldToMeasureTransformation,
},
Expand Down Expand Up @@ -279,6 +281,7 @@ export const COLUMN_VISUALIZATION: GraphShared['visualization'] = {
holidays: 'off',
axisFormatMode: 'auto',
axisModeMap: {},
axisVisibility: 'show',
},
transform: prepareFieldToDimensionTransformation,
},
Expand All @@ -305,6 +308,7 @@ export const COLUMN_VISUALIZATION: GraphShared['visualization'] = {
labelsView: 'auto',
nulls: AxisNullsMode.Ignore,
axisFormatMode: 'auto',
axisVisibility: 'show',
},
transform: prepareFieldToMeasureTransformation,
},
Expand Down Expand Up @@ -367,6 +371,7 @@ export const BAR_VISUALIZATION: GraphShared['visualization'] = {
labelsView: 'auto',
axisFormatMode: 'auto',
axisModeMap: {},
axisVisibility: 'show',
},
transform: prepareFieldToDimensionTransformation,
},
Expand Down Expand Up @@ -394,6 +399,7 @@ export const BAR_VISUALIZATION: GraphShared['visualization'] = {
nulls: AxisNullsMode.Ignore,
holidays: 'off',
axisFormatMode: 'auto',
axisVisibility: 'show',
},
transform: prepareFieldToMeasureTransformation,
},
Expand Down
2 changes: 2 additions & 0 deletions src/ui/constants/visualizations/scatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const SCATTER_VISUALIZATION: GraphShared['visualization'] = {
holidays: 'off',
axisFormatMode: 'auto',
axisModeMap: {},
axisVisibility: 'show',
},
},
{
Expand All @@ -88,6 +89,7 @@ export const SCATTER_VISUALIZATION: GraphShared['visualization'] = {
hideLabels: 'no',
labelsView: 'auto',
axisFormatMode: 'auto',
axisVisibility: 'show',
},
onChange: onMeasureAxisChange,
},
Expand Down

0 comments on commit af9340e

Please sign in to comment.