Open VinLau opened 2 weeks ago
I can use the min/max (need to refactor?) inside getInitialData inside index.tsx of EFP (https://github.com/BioAnalyticResource/ePlant/blob/2ff7e04e16499c38e790d8f0cbdca6aa29608b93/Eplant/views/eFP/index.tsx#L167) to grab the view-global maximum for colouring.
The eFP views seem to have incorrect colouring where the colouring of tissues is based on the group maxima/minima versus the global (i.e. entire view) maxima values. This makes it such that the colouring is very different to (current) ePlant2.
To reproduce/see on ePlant2:
Note the current view on ePlant in development for the same gene (ABI3):
Note that the value of '21.53' is the same on the tooltip however the colouring is vastly different. It should be closer to yellow than red as the maximum for the view is 120.64. Also the SD is slightly off.
The bottom-left heat scale is off.
We will need to refactor how the getColor function (svg.tsx) works and/or potentially how to parses the XML to include global maximum.