Skip to content

legend updates needed for divergent colormaps for continuous overlay variables  #454

Closed
@danicahelb

Description

@danicahelb

From @bobular

In GEMS1, BMI-for-age z-score ranges from -15 to +273, but when i use this term as an overlay, the legend indicates it ranges from -30 to +30. (I thought it could have something to do with not having data for the participant whose BMI-for-age z-score was 273 but checked and this is not the case)

I've had a quick look. The code is creating a symmetrical gradient around zero and is using the curated displayRangeMin and displayRangeMax in preference to the data-derived rangeMin and rangeMax. (This preference has been standard practice until now, I believe.) So this is why we get -30 to 30 (because it creates a symmetric range using max(abs())

image

image

image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions