Hi,
1. The second column cannot be text. It needs to be a number that will get
scaled and have a color assigned to it. What are you trying to do here? Are
you looking to do something like series, where each country has a category?
2. You can listen for either the 'regionClick' event or the 'select' event,
depending on if you want your handler to work for all regions
('regionClick' event), or just the ones you have data for ('select' event).
You can attach a listener using
google.visualization.events.addListener(chart, 'regionClick', function(r) {
alert('Clicked ' + r.region) });
You would have to do the redirect yourself by modifying the browser's
location.
On Thu, Jun 11, 2015 at 11:38 AM <[email protected]> wrote:
> Hi,
>
> I have two questions :
>
> 1. When using Region display we have 2 columns (country and data value
> which is a number). Is it possible to change the second criteria to text
> value?
>
> 2. How can I set an option to click on the country to redirect to an url?
>
> Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.