feat: new classifications and legend improvements#3637
Draft
BRaimbault wants to merge 21 commits intomasterfrom
Draft
feat: new classifications and legend improvements#3637BRaimbault wants to merge 21 commits intomasterfrom
BRaimbault wants to merge 21 commits intomasterfrom
Conversation
Contributor
|
🚀 Deployed on https://pr-3637.maps.netlify.dhis2.org |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Implements:
Planned:
Possible:
Description
DHIS2-21142: Add ckmeans classification methods - KKmdCyobwV8
Details
+ Changes:
+ Code:
i18n/en.potsrc/constants/layers.jssrc/util/classify.jspackage.jsonandyarn.lockDHIS2-20818: Thematic layer, bubble style - legends shows NaN when the all mapped values are equal - nxq2hIlZdAK
Details
+ Code:
src/util/bubbles.jsDHIS2-20287: Hide or show map layers while on the dashboard like it is the charts - vk5afupHOqr?interpretationId=PQfGfYQRzG8
Details
+ Changes:
Add visibility toggeling icon in plugin legend.
+ Code:
DHIS2-19984: Values not displayed for data item with type NUMBER and associated to an option set in Maps app data table - wDv1BBwTCyQ
Details
+ Changes:
Treat number with option set as text.
+ Code:
DHIS2-18963: Digit groups separator functionality in maps - gugP3BzGjK1 - thematic / UPtjWBCx4pJ - events / lL0i0WO23Gw - tracked entities / DpskVx1d2Jh - earth engine / gmSDDyzZHy2 - geojson / WR6S8roHTao - org unit / N3N3m9zyKy5 - facility
Details
+ Changes:
Values/counts appear in:
+ Code:
src/components/legend/LegendItemRange.jsxandsrc/components/legend/Bubble.jsxsrc/loaders/thematicLoader.jsL309:329DHIS2-12860: Equal counts distribution is not ideal when many values are the same - APqEkeE0Nr5
Details
+ Changes:
+ Code:
src/util/classify.jsL86:91src/util/classify.jsL42:43DHIS2-10823: Improve the predefined legend display - oXqCWc5JtS5
Details
+ Changes:
What was already implemented was de-duplication on item by item basis if the name was exactly “{startValue} - {endValue}”.
Implemented a more robust check that also caters for “100+”, “50 or below”.,"100 000" or "100,000"... scenarios,
+ Code:
src/components/legend/Legend.jsxsrc/components/legend/LegendItem.jsxsrc/components/legend/LegendItemRange.jsxsrc/util/legend.jsL157-188DHIS2-8478: Automatic legends with few data points - r56Jrw3ZOQs
Details
+ Changes:
When there are less distinct value than requested classes we will just create one class per distinct value. This might result in less classes than specified, but there is no point in creating unnecessary empty classes.
+ Code:
src/util/classify.jsL67:72DHIS2-237: Deal with events without coordinates - oYiqu1VidCh
Details
+ Changes:
Add setting in Events layer configuration to count events without coordinates.
Add "Data quality" section in legend which reports the count of events without coordinates if available.
Add events without coordinates to data table if counting events without coordintes was requested.
+ Code:
Others
Details
src/loaders/thematicLoader.jsL238src/util/legend.jsL46:56src/util/classify.jssrc/util/legend.jsL138:145src/loaders/thematicLoader.jsand insrc/util/styleByDataItem.jssrc/util/classify.jssrc/util/__tests__/classify.spec.jsandsrc/util/__tests__/legend.spec.jsQuality checklist
Add N/A to items that are not applicable.