Closed macfarlandian closed 2 years ago
@terryttsai can you look into this when you have a chance, or maybe just assign to Ilya since according to the "Additional Context" it seems like it might be the result of one of his changes!
@terryttsai I know solution for this problem, so if you haven't done it by now, I could handle it.
Thank you @nasaownsky !!
Huh I thought I replied to this via email but I don't see my comment. I have a fix for this too: https://github.com/Recidiviz/public-dashboard/pull/573
Though poking around in the app, I see areas where we provide a legend on every bar rather than on the last bar, do we want to remove the legend in those places too?
In the racial disparities section:
yes I agree the desired behavior in these scenarios would be to only show the legend once, since it's the same for both charts in the section
@terryttsai what's the status on this?
PR https://github.com/Recidiviz/public-dashboard/pull/573 is up for fixing the issue however we should create a new issue for removing the legends in areas where they're showing up more than once.
I'll create the follow-up issue and merge #573
Thanks!!
Follow-up issue: https://github.com/Recidiviz/public-dashboard/issues/575
Describe the bug When viewing a demographic breakdown section (e.g., https://spotlight-staging.recidiviz.org/us-nd/narratives/probation/5), labels are missing on all but the last chart when you select a breakdown type.
To Reproduce Steps to reproduce the behavior:
Expected behavior Only the last chart should have a legend but all of the charts should have a title
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. (this is not sensitive data)
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Not evident in prod yet so it must be the result of an unreleased change (I believe https://github.com/Recidiviz/public-dashboard/commit/6dc855249dbd20befea052d8a25fef8860b159c2) ... it appears that the prop that hides the legend is also inadvertently hiding the title in this situation)