fix(charts): set reasonable default y-axis title margin to prevent label overlap (#38389)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Amin Ghadersohi
2026-03-10 19:09:09 +01:00
committed by GitHub
parent 3bb9704cd5
commit fe7f220c21
4 changed files with 4 additions and 4 deletions

View File

@@ -158,7 +158,7 @@ const defaultFormData: EchartsTimeseriesFormData & {
xAxisTitle: '',
xAxisTitleMargin: 0,
yAxisTitle: '',
yAxisTitleMargin: 0,
yAxisTitleMargin: 15,
yAxisTitlePosition: '',
time_range: 'No filter',
granularity: undefined,

View File

@@ -46,7 +46,7 @@ export const DEFAULT_FORM_DATA: EchartsTimeseriesFormData = {
xAxisTitle: '',
xAxisTitleMargin: 0,
yAxisTitle: '',
yAxisTitleMargin: 0,
yAxisTitleMargin: 15,
yAxisTitlePosition: 'Top',
// Now that the weird bug workaround is over, here's the rest...
...DEFAULT_SORT_SERIES_DATA,

View File

@@ -104,7 +104,7 @@ export const DEFAULT_TITLE_FORM_DATA: TitleFormData = {
xAxisTitle: '',
xAxisTitleMargin: 0,
yAxisTitle: '',
yAxisTitleMargin: 0,
yAxisTitleMargin: 15,
yAxisTitlePosition: 'Top',
};

View File

@@ -112,7 +112,7 @@ const formData: EchartsMixedTimeseriesFormData = {
yAxisBounds: [undefined, undefined],
yAxisBoundsSecondary: [undefined, undefined],
yAxisTitle: '',
yAxisTitleMargin: 0,
yAxisTitleMargin: 15,
yAxisTitlePosition: '',
yAxisTitleSecondary: '',
zoomable: false,