From cd523cd86b8fc7c6de1a5994ca029f4e3aa267dc Mon Sep 17 00:00:00 2001 From: Ovilia Date: Tue, 6 Apr 2021 17:04:04 +0800 Subject: [PATCH] fix(graph): no symbol when offset is not defined This may be a bug raised from #14375 --- src/chart/helper/Line.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chart/helper/Line.ts b/src/chart/helper/Line.ts index 1f0a18432..b2edb2748 100644 --- a/src/chart/helper/Line.ts +++ b/src/chart/helper/Line.ts @@ -70,7 +70,7 @@ function createSymbol(name: 'fromSymbol' | 'toSymbol', lineData: LineList, idx: const symbolSize = lineData.getItemVisual(idx, name + 'Size' as 'fromSymbolSize' | 'toSymbolSize'); const symbolRotate = lineData.getItemVisual(idx, name + 'Rotate' as 'fromSymbolRotate' | 'toSymbolRotate'); - const symbolOffset = lineData.getItemVisual(idx, name + 'Offset' as 'fromSymbolOffset' | 'toSymbolOffset'); + const symbolOffset = lineData.getItemVisual(idx, name + 'Offset' as 'fromSymbolOffset' | 'toSymbolOffset') || 0; const symbolKeepAspect = lineData.getItemVisual(idx, name + 'KeepAspect' as 'fromSymbolKeepAspect' | 'toSymbolKeepAspect'); -- GitLab