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

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
(cherry picked from commit fe7f220c21)
This commit is contained in:
Amin Ghadersohi
2026-03-10 19:09:09 +01:00
committed by Michael S. Molina
parent 88195cdb54
commit ec8177fe15
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,