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

Update contextual-data.widget.tsx with better unit management #257

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

joaquinOEF
Copy link
Contributor

Changed toPrecision from 5 to 3 for more relevant units
This is for:

  1. Population % of parent actor
  2. Total population
  3. GDP

Changed how we show area so that if it's > 1M, it show M Km2
Also added a toFixed(3) if its > 1M

Changed toPrecision from 5 to 3 for more relevant units, changed how we show area so that if its > 1M it show M Km2
@joaquinOEF joaquinOEF requested a review from evanp December 21, 2023 18:10
@evanp evanp merged commit 1ea02ad into develop Dec 21, 2023
3 checks passed
@evanp evanp deleted the joaquinOEF-contextual-units branch December 21, 2023 21:03
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.

2 participants