mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-22 17:56:43 +02:00
feat(pie): adding outer border, text position options
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user