Skip to content

Order values by sum causes bad line path #823

@nickofthyme

Description

@nickofthyme

Describe the bug
Using orderOrdinalBinsBy draws line out of order.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://elastic.github.io/elastic-charts/?path=/story/bar-chart--order-bins-by-sum
  2. Change BarSeries to LineSeries
  3. Ensure orderOrdinalBinsBy in enabled
  4. Notice the line is drawn out of order

Expected behaviour
Draws line in sequential order with orderOrdinalBinsBy setting enabled.

Screenshots
Screen Recording 2020-09-15 at 10 24 AM

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleasedIssue released publicly

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