-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dealing with sub-categories #32
Comments
Just wanted to add some notes from our discussion yesterday. Another possible way this could work is to have a UI with categories like Optionally, selecting |
Hi @Aariq! Is filtering by subcategory still going to be possible with the updated interactive sankey? If so, is there a format you prefer for the dataset? In our updated (nearly clean) dataset, @mjospe has it organized where we have one column with the "specific" biomarker, and one column with the "broader term" for the biomarker (eg, the specifics, or subcategories, are things such as adiponectin and gonadotropin, but they both fall into the broader category of hormone levels). If possible, we would like the sankey to be created from the "broader terms" column of data, but have the option in the dropdown menu to filter by the more specific terms. Ex:
Diabetes
|
I still haven't had a chance to think through how this will work, but this is really helpful. I want to try for a solution that uses the current "selectize" UI because it comes with the important feature of filtering the possible input choices for each variable based on choices for other variables. So, that probably means there won't be a dropdown menu, per se, but I hope I can figure out a functional solution. |
I don't think there's a great way to do this without replacing the UI widget, unfortunately. I think making some kind of sub-category dropdown menu is beyond the scope of the incubator project. As a workaround, I think we could do some careful naming of nodes so they show up together in the selection box. For example :
That will at least make it easy to select all or just some of the sub-categories. |
While data cleaning, we are combining some of the categories (eg, in the column of "Outcomes," we are combining "Blood pressure management," "CVD management," and "Lipid management" all under "CVD management." Another example, as you can see by the additional column in our data, is combining "Type 1 diabetes," "Type 2 diabetes," "Prediabetes," and "Gestational diabetes" all under the Domain, "Diabetes").
Since we have the more detailed data, is it possible to have "subcategories" that we could filter by? For instance, indented under "Diabetes" in the dropdown menu, we could list the more specific categories? The default could be the broader "Diabetes" category, but more specific could be an option?
Note: Thank you for spacing out the nodes, Eric!
Originally posted by @kellirichardson in #15 (comment)
The text was updated successfully, but these errors were encountered: