feat(pie): adding outer border, text position options

This commit is contained in:
Billiam
2023-02-24 18:02:32 -06:00
parent f62c4831ad
commit 6e4e529af2
9 changed files with 44 additions and 2 deletions

View File

@@ -75,4 +75,20 @@ describe('Pie Chart', () => {
expect(svg).to.not.have.attr('style');
});
});
it('should render a pie diagram with given outside stroke width', () => {
renderGraph(
`
pie title Sports in Sweden
"Bandy" : 40
"Ice-Hockey" : 80
"Football" : 90
`,
{ pie: { outerBorderWidth: 5 } }
);
cy.get('.pieOuterCircle').should((circle) => {
const strokeWidth = parseFloat(circle.attr('stroke-width'));
expect(strokeWidth).to.eq(5);
});
});
});