chore(charts): echarts left padding too big and automation of title (#36993)

This commit is contained in:
Luis Sánchez
2026-02-02 20:48:03 -03:00
committed by GitHub
parent 4b0d497513
commit 91131d5996
8 changed files with 644 additions and 10 deletions

View File

@@ -576,8 +576,11 @@ export default function transformProps(
? getXAxisFormatter(xAxisTimeFormat)
: String;
const addYAxisTitleOffset = !!(yAxisTitle || yAxisTitleSecondary);
const addXAxisTitleOffset = !!xAxisTitle;
const addYAxisTitleOffset =
!!(yAxisTitle || yAxisTitleSecondary) &&
convertInteger(yAxisTitleMargin) !== 0;
const addXAxisTitleOffset =
!!xAxisTitle && convertInteger(xAxisTitleMargin) !== 0;
const chartPadding = getPadding(
showLegend,