healthyregions / chicago-environment-explorer

ChiVes harmonizes & standardizes environmental data across dozens of sources to make it accessible for full exploration, alongside a growing list of resources on the Chicago Environment, cultivated by a community of curators.
8 stars 1 forks source link

feat: added Index Builder accordions with text descriptions of Custom Index calculations #144

Closed bodom0015 closed 3 months ago

bodom0015 commented 3 months ago

Problem

We would like to add a bit more detail/context surrounding the following:

  1. How is the Custom Index calculated from raw numerical values?
  2. Why are the numerical weights sometimes different from the percentages supplied?

Fixes #139

Approach

Screenshot 2024-04-04 at 12 26 43 PM

Screenshot 2024-04-04 at 12 26 52 PM

Screenshot 2024-04-04 at 12 27 03 PM

How to Test

  1. Navigate to /builder
  2. Select 1 or more indicators and click Next
    • You should be navigated to the Choose Weights page
    • You should see the two new text accordions shown here
  3. Click the accordion that reads "How are these weights used to calculate the Custom Index?"
    • You should see an explanation of the numerical calculations involved in creating the Custom Index
  4. Click the same accordion header again to close the explanation
  5. Click on the accordion that reads "Why is there a difference between numerical weight and the percentage applied?"
    • You should see an explanation / example of how the percentages are calculated on the pie chart
  6. Click the same accordion header again to close the explanation
netlify[bot] commented 3 months ago

Deploy Preview for chicago-env-explorer ready!

Name Link
Latest commit 585734aaee2c7e3d869dfa57fa1499ceceb7c4ce
Latest deploy log https://app.netlify.com/sites/chicago-env-explorer/deploys/660ee8e88542790008761086
Deploy Preview https://deploy-preview-144--chicago-env-explorer.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.