Merge pull request #4145 from Billiam/feature/move-pie-labels

Pie: Adding outer border, text position options
This commit is contained in:
Sidharth Vinod
2023-03-05 00:33:15 +05:30
committed by GitHub
16 changed files with 131 additions and 3 deletions

View File

@@ -75,4 +75,15 @@ describe('Pie Chart', () => {
expect(svg).to.not.have.attr('style');
});
});
it('should render a pie diagram when textPosition is set', () => {
imgSnapshotTest(
`
pie
"Dogs": 50
"Cats": 25
`,
{ logLevel: 1, pie: { textPosition: 0.9 } }
);
cy.get('svg');
});
});