diff --git a/src/chart/chord/ChordEdge.ts b/src/chart/chord/ChordEdge.ts index 74bb3f6e49..c0e8b492d8 100644 --- a/src/chart/chord/ChordEdge.ts +++ b/src/chart/chord/ChordEdge.ts @@ -47,6 +47,7 @@ export class ChordPathShape { cy: number = 0; // series.r0 of ChordSeries r: number = 0; + value: number = 0; clockwise: boolean = true; } @@ -70,6 +71,9 @@ export class ChordEdge extends graphic.Path { } buildPath(ctx: PathProxy | CanvasRenderingContext2D, shape: ChordPathShape): void { + if (shape.value <= 0) { + return; + } // Start from n11 ctx.moveTo(shape.s1[0], shape.s1[1]);