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 ?
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 ?