auspice icon indicating copy to clipboard operation
auspice copied to clipboard

Allow / infer types for dragged on metadata

Open kvargha opened this issue 2 years ago • 3 comments

Context

It improves readability especially when dealing with number-based labels.

Description

The legend should be sorted in increasing order.

Examples

image

Here's an example where sorting would be helpful.

kvargha avatar Sep 06 '23 20:09 kvargha

Hey @kvargha - if you change the scale type to "ordinal" or "continuous" they should be ordered. Currently it looks like it's a categorical scale which is ordered by the number of associated nodes in the tree. The scale type is typically set via the auspice-config.json - here's an example of a continuous scale being defined.

jameshadfield avatar Sep 06 '23 20:09 jameshadfield

Thank you for the explanation @jameshadfield. Is there a way to change the scale type on the client side? This is for a case where users upload their own metadata such as PHI.

kvargha avatar Sep 06 '23 21:09 kvargha

Ahh gotcha. At the moment this isn't possible but we could add this pretty easily. One option is to allow column names such as Age:ordinal. Alternatively we could probably infer the type in many (most?) cases, which might be a more generally useful solution.

jameshadfield avatar Sep 06 '23 22:09 jameshadfield