If I cannot set color using string how can I achieve this?
MA - OBAMA - BLUE
NH- ROMNEY - RED
NY-OBAMA-BLUE
My data is like this
MA - OBAMA - WINNER
NH-ROMNEY-WINNER
Regards
Sivakumar
On Monday, 24 June 2013 14:28:50 UTC+5:30, siva kumar wrote:
Hi,
**
i want to set the region color
Here is an updated jsfiddle http://jsfiddle.net/ZNzZA/1/that also
transforms the data.
- Sergey
On Wed, Jun 26, 2013 at 5:36 AM, siva kumar tsivakumar1...@gmail.comwrote:
If I cannot set color using string how can I achieve this?
MA - OBAMA - BLUE
NH- ROMNEY - RED
NY-OBAMA-BLUE
My data
Hi!
I just answered a similar question in stackoverflow today. Maybe it was you?
http://stackoverflow.com/questions/17269451/how-can-i-set-the-region-color-for-each-state-in-geochart
Sergey solution is even more clean than mine :)
Cheers
Segunda-feira, 24 de Junho de 2013 10:58:50 UTC+2,
Hi Carlos, it does look like you answered the same question. Here are some
ways in which you can clean up your answer:
1. You're using an array (ivalue) as an object, you may as well simply
define it to be an object.
2. You're using the addRows function to add one row at a time, when you