CaRCC / rcd-nexus-portal

RCD Nexus Portal, including Capabilities Model assessment
0 stars 0 forks source link

Report 'not enough data' for a missing category WITHIN a chart view #196

Closed lmichael107 closed 1 week ago

lmichael107 commented 2 months ago

Currently, a graph will be produced without data for one or more categories within the "Chart View". See the below examples.

I would be nice if the missing category were still shown at right, with some indicator (question mark or parenthetical) indicate "not enough data" or something like that. Screenshot 2024-08-26 at 2 48 02 PM

lmichael107 commented 2 months ago

Missed the following, before. Screenshot 2024-08-26 at 2 24 17 PM

plschmitz commented 2 months ago

I am not sure that we can control this, but I will look into it. I think this is something that the graphing engine does by itself when there are zero institutions in a given category. This is not us filtering the data.

This is one of those cases where someone could in theory use the tools to determine levels for a given institution with some careful filtering. We do not currently review the # of institutions in each category to remove categories within a filter where there are < 5 institutions.

plschmitz commented 2 months ago

Moving to 2.2 as this is fairly non-trivial. This happens deep inside logic we call, so we would have to do some extra checking to even detect this.

plschmitz commented 1 month ago

For now, just add a footnote about the issue

plschmitz commented 1 week ago

Added support in latest branch for do detect when categories are filtered (or otherwise unrepresented in dataset). Note that e.g., Reporting Structure currently lacks any data for the choice "Academic/Research Institute or Center" and so the note currently always appears for that compare-by choice. There is no clean way to work around that minor issue.