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

fix: update 'No data' handling #596

Merged
merged 6 commits into from
Nov 29, 2024
Merged

fix: update 'No data' handling #596

merged 6 commits into from
Nov 29, 2024

Conversation

BRaimbault
Copy link
Collaborator

@BRaimbault BRaimbault commented Nov 21, 2024

Implement DHIS2-18427
Linked maps-app PR: dhis2/maps-app#3408
Linked maps-app v39 PR: dhis2/maps-app#3415


  • Tooltip to display 0 when the value is 0 instead of 'No data':
    (key === 'value' ? this.locale('HoverLabel.NoData') : '')
  • Labels with name and value or value only display: 'No data' when value is undefined/null:
    Note: Here nodata label is passed directly from maps-app instead of from Map.locale as the "label layer" source is not created in the Map context.
    value: properties.value,

Before:
image

After:
image

@BRaimbault BRaimbault marked this pull request as ready for review November 22, 2024 13:13
@BRaimbault BRaimbault merged commit 1fbdb20 into master Nov 29, 2024
3 checks passed
@BRaimbault BRaimbault deleted the fix/DHIS2-18427 branch November 29, 2024 09:26
github-actions bot pushed a commit that referenced this pull request Nov 29, 2024
## [4.0.1](v4.0.0...v4.0.1) (2024-11-29)

### Bug Fixes

* update 'No data' handling ([#596](#596)) ([1fbdb20](1fbdb20))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 4.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants