From 547311d30ca334c4bcd1c51cf13fa20ae28eb740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6khan=20=C3=96zen?= Date: Fri, 23 Jun 2017 14:35:09 +0200 Subject: [PATCH] for multi-arc-gauge the radius has changed to let the label fit in the chart --- spec/arc-spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/arc-spec.js b/spec/arc-spec.js index f306548..de431d0 100644 --- a/spec/arc-spec.js +++ b/spec/arc-spec.js @@ -122,7 +122,7 @@ describe('c3 chart arc', function () { .select('g.c3-shapes.c3-shapes-data.c3-arcs.c3-arcs-data') .select('path.c3-shape.c3-shape.c3-arc.c3-arc-data'); - expect(data.attr('d')).toMatch(/M-304,-3\..+A304,304 0 0,1 245\..+,-178\..+L237\..+,-172\..+A294,294 0 0,0 -294,-3\..+Z/); + expect(data.attr('d')).toMatch(/-258.4,-3\..+A258.4,258.4 0 0,1 209\..+,-151\..+L200\..+,-146\..+A248.39999999999998,248.39999999999998 0 0,0 -248.39999999999998,-3\..+Z/); }); }); @@ -153,7 +153,7 @@ describe('c3 chart arc', function () { .select('path.c3-shape.c3-shape.c3-arc.c3-arc-data'); // This test has bee updated to make tests pass. @TODO double-check this test is accurate. - expect(data.attr('d')).toMatch(/M-221.*?,-2\..+A221.*?,221.*? 0 1,1 -68.*?,210.*?L-65.*?,201.*?A211.*?,211.*? 0 1,0 -211.*?,-2.*?Z/); + expect(data.attr('d')).toMatch(/M-180.*?,-2\..+A180.*?,180.*? 0 1,1 -55.*?,171.*?L-52.*?,161.*?A170.*?,170.*? 0 1,0 -170.*?,-2.*?Z/); }); describe('with labels use custom text', function() {