diff --git a/__tests__/unit/plots/funnel/basic-spec.ts b/__tests__/unit/plots/funnel/basic-spec.ts index 423c60b7e1..c7e0a69ce9 100644 --- a/__tests__/unit/plots/funnel/basic-spec.ts +++ b/__tests__/unit/plots/funnel/basic-spec.ts @@ -79,7 +79,6 @@ describe('basic funnel', () => { }); const geometry = funnel.chart.geometries[0]; - expect(geometry.labelOption.cfg.layout.type).toBe('interval-adjust-position'); const shapeFields = geometry.getAttribute('shape').getFields(); expect(shapeFields[0]).toBe('pyramid'); }); diff --git a/src/plots/funnel/geometries/basic.ts b/src/plots/funnel/geometries/basic.ts index 1e8c241d74..89c35b1936 100644 --- a/src/plots/funnel/geometries/basic.ts +++ b/src/plots/funnel/geometries/basic.ts @@ -51,15 +51,7 @@ function geometry(params: Params): Params { color, style: funnelStyle, }, - // 使用 Interval 绘制的漏斗图,默认使用 'interval-adjust-position', 否则尖底漏斗图最后一行 label 错位 - label: deepAssign( - { - layout: { - type: 'interval-adjust-position', - }, - }, - label - ), + label, state, }, });