mirror of
https://github.com/apache/superset.git
synced 2026-05-22 00:05:15 +00:00
fix(echarts): suppress phantom x-axis label at axis edge when no time grain (#39972)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user