asgallant, thats basically what I did. I did a 3 way if statement, if minvalue =0 then I did that, if maxvalue was 0 then reverse, if neither, do the first thing you said.
Also, I tried rounding the values, have updated it. This doesn't solve the first issue about the legend not showing up. One thing I noticed about the problem is it seems the legend is backwards when it is broken. For example highlight over a green state and the arrow on the legend moves to the right...but it should be on the left. Move over a red state and the legend moves to the left, but it should be on the right. However, on the 1987 to 2011 one that actually works, it doesn't do that. Maybe something to do with the range not being big enough...maybe less then 10. This range hardly ever goes above 10, but does in 1987 case. On Dec 13, 9:17 am, asgallant <[email protected]> wrote: > The colorAxis option is not locked in to what I listed there. If your > minimum is 0, then set up the option like this: > > colorAxis: { > values: [0, maxValue], > colors: ['#FFFFFF', '#00FF00'] > > } > > all the option does is map colors to values - it can have as many or as few > elements in it as you wish. -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
