eg-react icon indicating copy to clipboard operation
eg-react copied to clipboard

Metadata Colors

Open EvoAlias opened this issue 5 years ago • 8 comments

Allow customization of colors in the metadata table.

EvoAlias avatar Aug 09 '18 18:08 EvoAlias

@lidaof Would it be possible to assign metadata colors via the embedding code? Here we can see the metadataTerms: ["Sample"] parameter but I don't see a way to specific a color to each sample/metadata class.

joreynajr avatar Sep 26 '23 19:09 joreynajr

Hi @joreynajr , in the metadata object, you can use this syntax for customized color: "sample": {"name"" "bone", "color": "#FF0000"}, color can also be “red”, “blue”, any CSS color

lidaof avatar Sep 26 '23 19:09 lidaof

Doesn't the metadata object belong to each track? It seems better to assign colors at the hub level rather than the individual track level using something like the metadataTerms object.

joreynajr avatar Sep 26 '23 19:09 joreynajr

Whatever the case, for now I should use the metadata object from each track right?

joreynajr avatar Sep 26 '23 19:09 joreynajr

It works! Thank for the help @lidaof

joreynajr avatar Sep 26 '23 19:09 joreynajr

correct, we don't have centralized metadata terms anymore for the current version. thanks for the feedback! @joreynajr

lidaof avatar Sep 26 '23 20:09 lidaof

As for documentation, was this within the readthedocs? I might have missed it.

joreynajr avatar Sep 26 '23 20:09 joreynajr

good point, looks like it was missed...will add it

lidaof avatar Sep 26 '23 20:09 lidaof