Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

[ENH] Add sortOrder prop #160

Merged
merged 2 commits into from
Dec 18, 2017
Merged

[ENH] Add sortOrder prop #160

merged 2 commits into from
Dec 18, 2017

Conversation

naveenblipp
Copy link
Contributor

Fixes: FormidableLabs/victory#870

This fix uses the new sortOrder key. We can specify the ascending or descending order for sortKey

Tests will fail until we upgrade victory-core dependency with fix from FormidableLabs/victory-core#322

Thanks!

@boygirl
Copy link
Contributor

boygirl commented Dec 17, 2017

@naveenblipp Thanks. I will release your change in victory-core first

const data = range(9).map((i) => ({ x: i, y: i }));

const wrapper = shallow(
<VictoryPie data={data} sortKey={"x"} sortOder={"descending"}/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo sortOder -> sortOrder

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@naveenblipp I couldn't figure out why CI was still failing after releasing your change in victory-core. Pesky typos. Approved pending this change.

@naveenblipp
Copy link
Contributor Author

@boygirl Ah, sorry for those typos. Fixes the tests now.

@boygirl boygirl merged commit 8370c12 into FormidableLabs:master Dec 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Victory Pie] Ability to specify sort order
2 participants