Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C covid19india-react
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • covid19india
  • covid19india-react
  • Merge requests
  • !2272

Use sqrt scale for choropleths (see screenshots)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/aravindet/master into master Jul 24, 2020
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: aravindet

Description of PR

For choropleth maps, change the scale from sequential to sequentialSqrt.

As the number of cases in a few districts are orders of magnitude above all the others, at an India-level district choropleths have a few dark spots in an ocean of white. It isn't possible to distinguish between the districts that have a statistic near the national median, and those districts for which it is close to zero.

See screenshots.

Checklist

  • Compiles and passes lint tests
  • Properly formatted
  • Tested on desktop
  • Tested on phone

Screenshots

Current: Original

This PR (square root): Sqrt

Alternative considered (log):

Log

Unfortunately I think this goes too far, minimizing the difference between hotspot districts and the others. It's very sensitive to the choice of the "bottom" of the scale (0 is not an option), and will need some work to set that to, say, the min or 1-percentile number from the data set. Also makes the legend at the bottom very crowded.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/aravindet/master