[Lens] Set pie chart slices sorted clockwise (#92617) (#93602)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Marco Liberati 2021-03-04 17:21:43 +01:00 committed by GitHub
parent a9d4ef0734
commit bab0a6dfaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -172,7 +172,6 @@ export function PieComponent(
fontFamily: chartTheme.barSeriesStyle?.displayValue?.fontFamily,
outerSizeRatio: 1,
specialFirstInnermostSector: true,
clockwiseSectors: false,
minFontSize: 10,
maxFontSize: 16,
// Labels are added outside the outer ring when the slice is too small

View file

@ -120,7 +120,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'[data-test-subj="embeddablePanelHeading-lnsPieVis"]',
'lnsPieVis'
);
const hasGeoDestFilter = await filterBar.hasFilter('geo.dest', 'LS');
const hasGeoDestFilter = await filterBar.hasFilter('geo.dest', 'AL');
expect(hasGeoDestFilter).to.be(true);
await filterBar.addFilter('geo.src', 'is', 'US');
await filterBar.toggleFilterPinned('geo.src');