FredHutch / Oncoscape

a web application to apply/develop analysis tools for Molecular and Clinical data
https://oncoscape.sttrcancer.org
MIT License
178 stars 45 forks source link

Selected cohort and Survival graph color of selected legend item #454

Closed GregGlatzer closed 6 months ago

GregGlatzer commented 6 months ago

Landscape: When user selects a legend item, thus selecting a number of points, a curve is added to the KM graph. The curve's color comes from a predefined list of colors, which is fine for a manual selection, but when the selection comes from a color-legend item, the item's color should be used for the KM curve, and for the selection as a would-be-cohort.

Maybe look at updateDecoratorBasedOnStoredColors ?