Skip to content

Feats: Handling missing data and fixing numCandidatesMap issue#91

Open
kkkarnav wants to merge 17 commits intoADR_chartsfrom
error_handling
Open

Feats: Handling missing data and fixing numCandidatesMap issue#91
kkkarnav wants to merge 17 commits intoADR_chartsfrom
error_handling

Conversation

@kkkarnav
Copy link
Copy Markdown
Contributor

Adds error handling for missing data so that the app gracefully moves to a missing data screen without crashing

Refactors getColor methods and fixes the issue where constituency maps had discrepancies between map colors and legend colors

kkkarnav and others added 12 commits December 31, 2021 17:11
The class methods getColorForContinuous GetColorForNormalizedMap and GetColorForChangeMap had three if-statements each to return the data-unavailable colour. Replaced all nine if-statements with one class method, isDataUnavailable()
Fixes issue where the legend and map colors were not the same for NumCandidatesMap maps
Adds refactor isDataUnavailable to all maps
Feats: Handling missing data and fixing numCandidatesMap issue
@mohitkharb mohitkharb changed the base branch from master to ADR_charts January 31, 2022 09:16
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.

1 participant