A set of React components powering a web app for exploring centralized, standardized metrics on the performance of justice systems across the United States
GNU General Public License v3.0
1
stars
0
forks
source link
NaN is shown for percentage change when line is hidden #47
If there is data for a line but it is hidden by the time view selector, e.g. data for one line ends more than a year before data for a different line, then the percentage change for that line shows NaN
To Reproduce
Steps to reproduce the behavior:
These are the same steps as #46, except with time scale left at "1 year"
@hobuobi mentioned that we should use the "No Data Available" treatment for the given line while it is not in view
Screenshots
Screenshots revealing sensitive information must not be shared. If a screenshot is helpful in diagnosing and resolving the bug, please send this directly to a contact on the Recidiviz team.
Desktop (please complete the following information):
OS [e.g. Windows 10]: MacOS
Browser [e.g. chrome, edge]: Chrome
Version [e.g. 22]:
Additional context
Add any other context about the problem here.
Describe the bug
If there is data for a line but it is hidden by the time view selector, e.g. data for one line ends more than a year before data for a different line, then the percentage change for that line shows NaN
To Reproduce Steps to reproduce the behavior:
These are the same steps as #46, except with time scale left at "1 year"
src/data.json
with https://drive.google.com/file/d/1OLenZP9LW_p3SKX1kA7JahL7n6R-nuxk/view?usp=sharingstateCode
toUS_CT
insrc/index.js
yarn start
Expected behavior
@hobuobi mentioned that we should use the "No Data Available" treatment for the given line while it is not in view
Screenshots Screenshots revealing sensitive information must not be shared. If a screenshot is helpful in diagnosing and resolving the bug, please send this directly to a contact on the Recidiviz team.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.