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

[Backport 2022.02.xx] #8591 Fix chart legend ordering matching colorCatagories order (#8592) #8639

Merged

Conversation

alex-fko
Copy link
Contributor

[Backport 2022.02.xx] #8591 Fix chart legend ordering matching colorCatagories order (#8592)

…es order (geosolutions-it#8592)

* 632 fix on widget chart classification

* geosolutions-it#8591 Fix chart legend ordering matching colorCatagories order

* add comment to explain the changes

* added dedicated tests with data unordered and sorted by autoColorOptions.classification

* Fix correct sorting when data are not grouped, and when default label is used

* Elements reordering for ranging classification type. Refactoring.

* Restored grouping by X axis property prior to sorting.

* Adjusting data sample to the fact that data is reordered only by a classification attribute. Additional order inside X axis values cannot happen because it may affect order of data appearance for corresponding classifications and change legend order.

* Removed data split by X axis value (redundant action)

Co-authored-by: Alexander <113525996+alex-fko@users.noreply.github.com>
(cherry picked from commit 940b328)
@tdipisa tdipisa merged commit 7e4904e into geosolutions-it:2022.02.xx Sep 30, 2022
@tdipisa tdipisa added this to the 2022.02.01 milestone Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants