Is it possible to add title to the Geo Charts ?

2,127 views
Skip to first unread message

Sunny Daniel

unread,
Mar 28, 2014, 4:39:43 AM3/28/14
to google-visua...@googlegroups.com

Sergey Grabkovsky

unread,
Mar 28, 2014, 9:32:19 AM3/28/14
to google-visua...@googlegroups.com
No, this is not something that's currently possible with the GeoChart. You can, however, put a div with your title above the chart and effectively achieve the same functionality.

- Sergey


On Fri, Mar 28, 2014 at 4:39 AM, Sunny Daniel <sunn...@gmail.com> wrote:

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

maria

unread,
Mar 28, 2014, 11:54:24 AM3/28/14
to google-visua...@googlegroups.com
Hi 

I had the similar issue . When i try to print the title using the clicked region value it gives the geocode for example 021 or US or CA instead of United States or Canada. Is it possible to get the Name of the Region and not the geocode. 

Thanks  

On Friday, March 28, 2014 4:39:43 AM UTC-4, Sunny Daniel wrote:

Sergey Grabkovsky

unread,
Mar 28, 2014, 12:05:53 PM3/28/14
to google-visua...@googlegroups.com
It is not possible to get a "nice name" for regions, because the purpose is to give something that the GeoChart can recognize. What you could do is listen for the select event, call getSelection on the chart, and look up the "nice name" in the DataTable, assuming you provided one. There is no way to get the GeoChart to produce "nice names" for you.

- Sergey


maria

unread,
Mar 28, 2014, 12:08:53 PM3/28/14
to google-visua...@googlegroups.com
Thanks a lot 

Carlos Moreira

unread,
Mar 30, 2014, 3:00:09 PM3/30/14
to google-visua...@googlegroups.com
Hi Sergey!
What about the displayMode:'text' ? Might be limited but it could help in some cases.
Any reason why it's not documented? It seems to be working on version 1 

Sergey Grabkovsky

unread,
Mar 31, 2014, 10:01:55 AM3/31/14
to google-visua...@googlegroups.com
Hi Carlos, I'm not sure if this was supposed to be a response to Maria's question about getting "nice names" from the GeoChart. If so, I interpreted the question as her wanting to query the GeoChart for the official name of an area (such as the imaginary api GeoChart.getOfficialName('RU') -> 'Russia'), not as her wanting to show names directly on the GeoChart. If I misinterpreted her question, I apologize, and displayMode: 'text' is indeed a decent solution.

If it wasn't a response to Maria's question, and simply a comment on how displayMode: 'text' is undocumented, then thank you for making us aware of this. We are constantly working hard to improve our code and documentation, but sometimes things slip through. We are now more aware of this than we were, and the documentation will hopefully come soon (though as a primer, it's very similar to 'markers' mode, and all the options should apply to it in the same way that they apply to markers).

- Sergey


Carlos Moreira

unread,
Mar 31, 2014, 2:20:33 PM3/31/14
to google-visua...@googlegroups.com
Hi Sergey! 
It was more of a answer suggestion to the initial thread question by Daniel. Indeed I also believe it wouldn't apply to Maria's case, you're right.
It would be great to have the updated documentation :) Another thing I know it's missing is the 'projection' parameter, that I saw in the Google I/O 2013 presentation by Mitchell Foley. 

So is it safe to implement maps with the displayMode:'text' already? It isn't something still in beta that might get pulled off at some point? I ask this because I don't think it was ever mentioned in any of the release notes. 


Sergey Grabkovsky

unread,
Mar 31, 2014, 2:52:20 PM3/31/14
to google-visua...@googlegroups.com
We don't have any plans to deprecate displayMode: 'text' or make it go away. It is possible that its behavior may change, and we reserve the right to change it, so it is in "beta" in that sense, but we'll mostly be moving forward, rather than back. The lack of documentation is simply due to this having slipped through our fingers, and it's coming.

- Sergey


Reply all
Reply to author
Forward
0 new messages