From 798b82b4292ffd0df3443465bee33d563976ffc7 Mon Sep 17 00:00:00 2001 From: Rishyanth Kondra <55177765+rishyanthkondra@users.noreply.github.com> Date: Sun, 25 Jan 2026 13:55:10 +0530 Subject: [PATCH] [Bugfix] Chord chart zero value edge covers full circle in clockwise orientation - fix: do not render edge when value is 0 --- src/chart/chord/ChordEdge.ts | 4 ++++ 1 file changed, 4 insertions(+) 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]);