Closed rambaut closed 5 years ago
Also with 25 colour spectrum, the adjacent ones are very similar. Should probably spread more when using fewer samples. Also allowing some customization would be good - i.e., colour 'groups' for related samples, greys for controls etc.
Implemented in 5cd9929779a0c7202786befe7614617475d04868
src/utils/colours.js
) still aren't perfect, but they try to be more spaced apart.
Currently, at line 77 in processServerData.js,
state.sampleColours = createSampleColours(25);
creates an array of 25 colours on a spectrum. This allows for the 24 native barcodes + 1 extra (i.e., 'none'). This needs to be dynamic for the number of samples.If the number samples is greater than this then there is an array out of bounds exception thrown in some of the components that use it. These should probably 'wrap' around to avoid the exception.