--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
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 <donkey.k...@gmail.com> 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 google-visualization-api+unsub...@googlegroups.com.
1. I just want the Countries to show some text information when hover. I set the countries concerned to be a specific color, all the same color because I don't need to show different color depending on data values numbers.2. Do you have an example, I'm not sure I understand.
On Thursday, June 11, 2015 at 5:53:44 PM UTC+2, Sergey wrote: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 <donkey.k...@gmail.com> 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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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 google-visualizati...@googlegroups.com.
If you simply want all the countries to be one color, you can easily do this by just providing one string column. This will cause all the locations to receive a value of null, which will be assigned a default color based on the option 'defaultColor'. Here's a simple example of this where I make the countries red: https://jsfiddle.net/ywss09q3/Here is that same example, along with a simple 'regionClick' handler that shows an alert with what was clicked on: https://jsfiddle.net/ywss09q3/1/And here is the same example, along with a simple 'select' handler that shows an alert with what was clicked on: https://jsfiddle.net/ywss09q3/2/
On Thu, Jun 11, 2015 at 12:07 PM <donkey.k...@gmail.com> wrote:
1. I just want the Countries to show some text information when hover. I set the countries concerned to be a specific color, all the same color because I don't need to show different color depending on data values numbers.2. Do you have an example, I'm not sure I understand.
On Thursday, June 11, 2015 at 5:53:44 PM UTC+2, Sergey wrote: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 <donkey.k...@gmail.com> 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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.--
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 google-visualization-api+unsub...@googlegroups.com.
I already set all the countries to be the same color. What I need is the text information. For example, when I hover the USA, it will shows a popup with some line text informations. Maybe with another code or another charts?
Thank you for the links
--
--