Skip to content

[Lens] Pie charts slices order is mirrored from the default one #92408

@dej611

Description

@dej611

Kibana version: 7.12

Elasticsearch version: 7.12

Browser version: any

Browser OS version: MacOS

Original install method (e.g. download page, yum, from source, etc.):
cloud

Describe the bug:

Slices order in the Pie and Donut chart in Lens is mirrored compared to the default in the elastic-charts one.
In elastic charts slices are sorted by size, the first one is set on the left of the midday mark while the rest are displaced clock-wise:

Screenshot 2021-02-23 at 14 42 22

In Lens this is exactly mirrored with the first slice being on the right of the midday mark, and the rest spread anti-clock-wise:

Screenshot 2021-02-23 at 14 41 44

Expected behavior:

Follow the elastic-chart behaviour.

Any additional context:

Talked with @markov00 about why having the first slice on the left of the midday mark, and that is to compare the first two slices side by side, while the rest follows the best practice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:LensTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experience

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions