Skip to content

fix(xy): dataIndex keep original data order on small multiples#1597

Merged
markov00 merged 5 commits intoelastic:masterfrom
markov00:2022_02_16-fix_dataindex_sorting
Feb 17, 2022
Merged

fix(xy): dataIndex keep original data order on small multiples#1597
markov00 merged 5 commits intoelastic:masterfrom
markov00:2022_02_16-fix_dataindex_sorting

Conversation

@markov00
Copy link
Collaborator

@markov00 markov00 commented Feb 16, 2022

Summary

The dataIndex predicate, used to keep the original data array sorting doesn't wrongly fall back anymore into the numAsc sort predicate, but has its own sorting function that returns just the original sorting.

Details

A storybook example was removed as it was not used in our current setup.

Issues

fix #1593

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • The proper feature labels have been added (e.g. :interactions, :axis)
  • All related issues have been linked (i.e. closes #123, fixes #123)
  • Unit tests have been added or updated to match the most common scenarios
  • The proper documentation and/or storybook story has been added or updated

@markov00 markov00 changed the title 2022 02 16 fix dataindex sorting fix(xy): dataIndex sorting on small multiples Feb 16, 2022
@markov00 markov00 added :data Data/series/scales related issue :small multiples Small multiples/trellising related issues :xy Bar/Line/Area chart related labels Feb 16, 2022
@markov00 markov00 changed the title fix(xy): dataIndex sorting on small multiples fix(xy): dataIndex keep original data order on small multiples Feb 16, 2022
@markov00 markov00 marked this pull request as ready for review February 16, 2022 15:56
@markov00 markov00 merged commit 9e2566c into elastic:master Feb 17, 2022
nickofthyme pushed a commit that referenced this pull request Mar 1, 2022
# [44.0.0](v43.1.1...v44.0.0) (2022-03-01)

### Bug Fixes

* **axis:** correct tick alignment in ordinal scale with numeric values ([#1609](#1609)) ([915349d](915349d))
* **legend:** width with duplicate nested pie slice labels ([#1585](#1585)) ([1073231](1073231))
* **partition:** consider legend extras when computing the legend size ([#1611](#1611)) ([2078f3d](2078f3d))
* **xy:** dataIndex keeps original data order on small multiples ([#1597](#1597)) ([9e2566c](9e2566c))

### Features

* **api:** expose Predicate enum ([#1574](#1574)) ([1f73eec](1f73eec))
* **heatmap:** allow rotation of x axis labels ([#1514](#1514)) ([b655156](b655156))

### BREAKING CHANGES

* **heatmap:** `width`, `align`, and `baseline` style properties are removed from the `xAxisLabels` and `yAxisLabels` style of the Heatmap theme.

Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
@markov00 markov00 deleted the 2022_02_16-fix_dataindex_sorting branch April 11, 2022 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:data Data/series/scales related issue :small multiples Small multiples/trellising related issues :xy Bar/Line/Area chart related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dataIndex sort predicate is not properly respected

2 participants