1 person found this helpful
If you combine the two concepts, you should get what you want.
Thanks for the useful info. I would like to ask you if you know how navigaate trhough the colors. I have a max color value and a min color value, then I do (mx - min) value divided by the number of rows that I have to try to get the gap between the colors and the sum the value for each row, and then use that color to fill my rectangle. Even though I don't know if I'm doing it wrong, every rectangle is fille up with a color but sometimes skip to a totally different color e.g. from the darkest green to light green, using this approach I get a red or a blue in some rows. I appreciate any help or advise.
Thanks in advance
I think what you are doing is partially correct in finding the number of colors required but if you want dark geen to light green then increment only the Green in color code like 40 90 40, 40 100 40, 40 110 40, 40 120 40 etc and convert them to hex codes http://blog.flexexamples.com/2007/08/13/converting-and-formatting-colors/