Allow additional colors for continuous data; i.e. for expression data: green to black to red.
The colors should probably go into the colormap, however there is some code that checks colormap existence to determine if the value is discrete or continuous. So that should use data type instead.
If we limited this to the case of only one active attr it is a more simple problem and we don’t get strange color combos when combining two attributes.
hexagram.js: getColor() is the actual place to calculate the color. We have code to do a gradient between two colors: yellow and grey, and code to do gradients of any single color when one attr is continuous and the other is discrete. So the code to calculate the gradient with three colors should be easy.
This is sort of a 4th data type as far as colors are concerned, and for drawing our histogram because I think we want zero to be in the middle of the histogram in this case. We could assume that three colors provided for a continuous type means these values go from some negative value to some positive value with zero in the middle. We shouldn’t limit it to the range of -1 to 1.
Do we assume all continuous values are yellow to dark grey unless a colormap is provided? and if provided it must be three values with zero in the middle?
Allow additional colors for continuous data; i.e. for expression data: green to black to red.
The colors should probably go into the colormap, however there is some code that checks colormap existence to determine if the value is discrete or continuous. So that should use data type instead.
If we limited this to the case of only one active attr it is a more simple problem and we don’t get strange color combos when combining two attributes.
hexagram.js: getColor() is the actual place to calculate the color. We have code to do a gradient between two colors: yellow and grey, and code to do gradients of any single color when one attr is continuous and the other is discrete. So the code to calculate the gradient with three colors should be easy.
This is sort of a 4th data type as far as colors are concerned, and for drawing our histogram because I think we want zero to be in the middle of the histogram in this case. We could assume that three colors provided for a continuous type means these values go from some negative value to some positive value with zero in the middle. We shouldn’t limit it to the range of -1 to 1.
Do we assume all continuous values are yellow to dark grey unless a colormap is provided? and if provided it must be three values with zero in the middle?