Ok I had changed everything over to GeoChart and even used the
ColorAxis, however, multiple issues came up.
First:GeoChart throws errors on the last Chart where unemployment %
numbers are really long. I'm assuming that I would have to round them
off to 2 or 3 decimal points. It still draws the image, and I can see
all the information when highlighting each state, however, the legend
at the bottom breaks and doesn't show anything.
Second:Color Axis seems to break when my minValue or MaxValue are 0.
So for instance I may end up with [minValue =0, 0, maxValue =10000],
or the reverse, minValue = -10000, 0, maxValue = 0] and giving it the
range of just [minValue, maxValue] doesn't work because even if the
number is positive it can show up the wrong color.
I fixed #2 by writing some new ColorArray functions to deal with it.
However the first problem still happens, although for some year spans
it doesn't throw errors.
For example...the default throws errors, but starting Jan 1987 and
leaving the end the same, doesn't throw errors at all.
A new link for the newer version until its stable:
http://chrisdblumberg.com/unemploymentNew/
On Dec 12, 12:43 pm, asgallant <[email protected]> wrote:
> At a glance, your code looks to be compatible with the GeoCharts - just
> change the package from 'geomap' to 'geochart'.  Also of note, the
> GeoCharts support an option that might be a good end-route for the
> color-array generating code you have in there:
>
> colorAxis: {
>     values: [minValue, 0, maxValue],
>     colors: ['#FF0000', '#FFFFFF', '#00FF00']
>
> }
>
> This assigns each value in the 'values' array to a color in the 'colors'
> array, and the chart applies a gradient between the colors for values in
> between.

-- 
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.

Reply via email to