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

GroupedBarCharts Not Aligned to Legend #34

Open
TaiWilkin opened this issue Dec 28, 2020 · 2 comments
Open

GroupedBarCharts Not Aligned to Legend #34

TaiWilkin opened this issue Dec 28, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@TaiWilkin
Copy link
Contributor

TaiWilkin commented Dec 28, 2020

Screen Shot 2020-12-28 at 4.27.35 PM.png

The items in the chart are in the opposite order as they appear in the legend.

Nivo doesn't provide an easily available way to align the order of the bars to the order of the items in the legend. For some reason, the legend items are explicitly reversed when you use keys, and you can't provide separate keys for the legend and the bar chart. It appears that this was fixed for non-canvas bar charts.

@TaiWilkin TaiWilkin added bug Something isn't working and removed bug Something isn't working labels Dec 28, 2020
@mmcfarland mmcfarland added the enhancement New feature or request label Jan 4, 2021
@TaiWilkin
Copy link
Contributor Author

I believe that the only way to move forward with this is to directly address the issue by requesting to merge a PR with the library or by running off of a branch of the library that we've fixed. Requesting a merge I'm not sure if it would work until they release a new version; running off of our own branch means that we won't get any updates/fixes the library pushes until they fix it and we can reintegrate.

@TaiWilkin
Copy link
Contributor Author

This appears to have been fixed in a Nivo upgrade. Upgrade to the latest version if possible.

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

No branches or pull requests

2 participants