fix(echarts): suppress phantom x-axis label at axis edge when no time grain (#39972)

This commit is contained in:
jesperct
2026-05-18 13:52:48 -03:00
committed by GitHub
parent 054aeb3bae
commit 5393fdfabf
4 changed files with 36 additions and 4 deletions

View File

@@ -589,7 +589,8 @@ export default function transformProps(
? getXAxisFormatter(xAxisTimeFormat, timeGrainSqla)
: String;
const showMaxLabel = xAxisType === AxisType.Time && xAxisLabelRotation === 0;
const showMaxLabel =
xAxisType === AxisType.Time && xAxisLabelRotation === 0 && !!timeGrainSqla;
const deduplicatedFormatter = showMaxLabel
? (() => {
let lastLabel: string | undefined;