Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to BarChart.js to resolve sorting issue #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toridenney
Copy link

No description provided.

// Sorted list of results based on the axis
return [toSort.reduce((ret, item, idx) => ({
...ret, ...{ [item.name]: idx }
}), {}), minVal, maxVal]

Choose a reason for hiding this comment

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

In lines 22 and 56 the return value at index 1 is interpreted as maxVal, not minVal. So you should either change the order here or in the mentioned lines (or not return minVal at all, as it does not seem to be needed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants