Me I use this method to control the 2 lines of the tooltip and still pass
the values:
var data = new google.visualization.DataTable();
data.addColumn('string', 'Country'); // Implicit domain
label col.
data.addColumn('number', 'Value'); // Implicit series
Hello!
to show the map with the provinces of China, I use:
displayMode: 'regions', resolution: 'provinces',region:'CN',
in the options.
Check out the result:
http://cmoreira.net/interactive-world-maps-demo/china-google-geochart-example/
Segunda-feira, 10 de Setembro de 2012 8:45:20 UTC+2,
Hello everyone!
Without wanting to spam with a product, here is a link to a Wordpress
plugin I developed that does some of this stuff:
http://cmoreira.net/interactive-world-maps-demo/
Since you guys are advanced users, you call pull up the source code from
the examples.
I did examples to
I builted a Wordpress Plugin that includes the data this way:
data.addRows([
[{v:US,f:United States of America},21,21% of Visits], [{v:GB,f:United
Kingdom},7,7% of visits],[{v:DE,f:Germany},6,6% of
visits],[{v:FR,f:France},5,5% of visits],[{v:ES,f:Spain},5,5% of
visits],
I would also be interested in this option to change the center of the
regions being displayed.
For example, when we choose GB - very popular and requested map - a lot of
the surroundings keep showing.
I've worked around this specific case with css, croping the frame and
keeping only the UK
From my experience, that is not possible, but I would love to have that
feature in the geochart api..
The only country we can display a 'zoom' in the states is the US.. maybe in
the future they will include more maps?
It would work something like this for brazil, in the options:
region: 'BR-AM',
Nice! Looking forward to the documentation!
I really hope the HTML tooltips will work for geochart, will be really nice.
Quinta-feira, 13 de Setembro de 2012 15:27:59 UTC+2, visigoth escreveu:
Oops, the above should read: *Anticipated production release date*: September
19, 2012
On
Hello everyone!
Does google analytics use the same Geochart API available for public?
I wonder how they do some of the stuff there, like:
- color the full continent, and have a mouseover tooltip for all the
continent - this is really nice feature
- inactive mouseover effect for inactive
on inactive
regions let me know.
Thanks in advanced!
Terça-feira, 18 de Setembro de 2012 12:22:59 UTC+2, Carlos Moreira escreveu:
Hello everyone!
Does google analytics use the same Geochart API available for public?
I wonder how they do some of the stuff there, like:
- color the full
hello asgallandt
did you ever succeed to complete that example
http://jsfiddle.net/asgallant/82TYA/5/ ?
I'm trying to do the same, also trying to disable that mouseover effect
with the stroke-width variable, but I can't find a solution. New paths just
get drawn over it..
It would be great if
in the example) don't
change all the paths when hovering.
On Monday, September 24, 2012 1:01:43 PM UTC-4, Carlos Moreira wrote:
hello asgallandt
did you ever succeed to complete that example
http://jsfiddle.net/asgallant/82TYA/5/ ?
I'm trying to do the same, also trying to disable
Hello everyone!
Nice to see the new release is out and working!
To bad HTML tooltips are not available for geochart... Still waiting on
that one :)
Bye bye Iframes, that's good!
The tooltip.trigger will also be usefull.
*I had one problem with this update tough*: I was using the color
sense to work for the
datalessregioncolor no?
I'll wait until the end of the week to get some feedback for the borders
question, no problem, thanks!
Terça-feira, 25 de Setembro de 2012 11:34:29 UTC+2, Carlos Moreira escreveu:
Hello everyone!
Nice to see the new release is out and working
correction:
I am not sure datalessRegionColor: 'none' worked on the past, since I was
using 'transparent'.
Terça-feira, 25 de Setembro de 2012 12:16:43 UTC+2, Carlos Moreira escreveu:
Thanks for the quick answer visigoth!
Further testing, and I have some conclusions:
datalessRegionColor
Since the API updated a couple of days ago, the maps are not built in
iframes, making it much easier to manipulate with css.
So, the example asgallant shared in the last reply, would be the similar to
build css like:
path:not([fill^=#f5f5f5]):hover {
cursor:pointer;
Yeah, when I have more than 10 markers on a map, the markers load very
slowly.
Like asgalland said, should be a problem of the geocoding service. I wish
there was a way to make the markers load faster. Some kind of cache system,
or asyncronously loading.
I'm guessing some ways would work faster
Hello everyone!
I ran into a strange problem. I think before this last update, it was not
like this, but I am not sure, maybe it was already.
I am trying to create a map of the Middle East, that includes countries
from Western Asia and North Africa.
When I choose to display the region of
.
On Saturday, October 6, 2012 7:01:10 AM UTC-4, Carlos Moreira wrote:
Hello everyone!
I ran into a strange problem. I think before this last update, it was not
like this, but I am not sure, maybe it was already.
I am trying to create a map of the Middle East, that includes countries
from
Thanks Jerome, will leave a comment there.
Segunda-feira, 8 de Outubro de 2012 21:50:04 UTC+2, Jérôme escreveu:
add a request on this issue, talking about your case
Hello guys!
I'm trying to control the content of the tooltip, so it doesn't show the
coordinates values, or that usual formating of 'Column Name: Value'.
I tried different variations, but couldn't get one to work the way I wanted.
Examples:
http://jsfiddle.net/cmoreira/FZeN9/ (would want to
in the second example:
http://jsfiddle.net/asgallant/njB6m/5/
On Tuesday, October 9, 2012 5:00:53 PM UTC-4, Carlos Moreira wrote:
Hello guys!
I'm trying to control the content of the tooltip, so it doesn't show the
coordinates values, or that usual formating of 'Column Name: Value'.
I tried
. It makes perfect sense to be consistent. I'll refer
this to our GeoChart guy to look into when he's back.
Glad you found a workaround for now.
On Tue, Sep 25, 2012 at 12:16 PM, Carlos Moreira
carlost...@gmail.comwrote:
Thanks for the quick answer visigoth!
Further testing, and I have
no?
IMO, you're right. It makes perfect sense to be consistent. I'll refer
this to our GeoChart guy to look into when he's back.
Glad you found a workaround for now.
On Tue, Sep 25, 2012 at 12:16 PM, Carlos Moreira carlost...@gmail.com
wrote:
Thanks for the quick answer visigoth!
Further
Also tested and It works fine, altough it throws a js error.
You can try and set a doctype !DOCTYPE HTML for example and change
https://www.google.com/jsapi to http://www.google.com/jsapi
Probably this was not the problem, but you can try.
Quinta-feira, 25 de Outubro de 2012 20:03:31 UTC+2,
has a better solution, please share :)
cheers
Carlos
Terça-feira, 6 de Novembro de 2012 21:38:04 UTC+1, Carlos Moreira escreveu:
Hello everyone!
I know that by default the API does not provide Zoom/Pan functionalities..
My first question would be to the API guys, if they're around
When I have this problem, i usually set a small offset for the lat/lon so
when the zoom feature kicks in, it show's the markers separated.
Fede, a bit offtopic, but what modal script did you use? i'm looking for an
easy one to use in some of my scripts..
cheers!
Sexta-feira, 28 de Dezembro de
Thanks for the tip!
cheers
Segunda-feira, 31 de Dezembro de 2012 23:06:50 UTC, Fede escreveu:
Hi Carlos,
In this project we are using Twitter's Boostrap, is very easy to use but
limited on some aspects, make sure it suits your needs.
On Dec 28, 2012 12:41 PM, Carlos Moreira
carlost
hello
asgallant is right, you can't remove it with the API. But did you try and
set the inactive regions to 'transparent' or 'none'?
what you can also do, is add some advanced CSS selectors like:
#visualization path {
stroke-width:0; /* to remove the borders */
}
and a more tricky one,
Were there any updates or bug fixes in Geochart?
Quinta-feira, 7 de Fevereiro de 2013 4:52:02 UTC, Mitch Foley escreveu:
Due to a blocking bug with GeoCharts, this release has been rolled back.
Once we have this bug fixed we'll push out this release again later this
week.
Thanks,
Hello EKel!
cmoreira here, author of the generator :)
I know that they released a new version of the API a couple of weeks ago,
but I'm not sure what it might have affected - maybe someone who works with
the API can comment on this. I guess if you share the code or link here,
we'll be able to
Correct,
I think the maps should render all the data from the countries that are in
the viewport, even if they are outside the region one is showing.
I've already created Issues in the google-visualization-api-foruns related
this this:
Hello Sergey!
That means that currently other selected areas, besides the US, already
support 'metro' resolution?
Can you name a couple more countries that also support it?
Thanks!
Carlos
Segunda-feira, 8 de Abril de 2013 15:41:19 UTC+1, Sergey escreveu:
Hello! We currently only support
Any idea if and when HTML tooltips will be available for the Geochart? This
would be an awesome feature :)
Thanks!
Quarta-feira, 6 de Fevereiro de 2013 21:29:01 UTC, trybka escreveu:
We have pushed a new release to production. It will roll out over the
next hour or so.
Documentation (and
I've also learned that when I leave the width and height settings blank the
chart draws with the available space, so at 100%.
To bad the chart doesn't adapt and keeps the fixed size after being drawn,
like asgallant mentioned. It would be an awesome feature with all the
responsive layouts out
, 10 de Maio de 2013 18:50:11 UTC+2, Carlos Moreira escreveu:
I've also learned that when I leave the width and height settings blank
the chart draws with the available space, so at 100%.
To bad the chart doesn't adapt and keeps the fixed size after being drawn,
like asgallant mentioned
I also just watched probably the same presentation:
https://developers.google.com/events/io/sessions/401719292 (minutes 20 - 25)
I am very curious to about the projections options. Would love to see
documentation or some more advanced examples.
It would be great if it would be possible to make
Hello all
My data is in this format:
data.addRows([[{v:'AU-NSW',f:'New South Wales'},0,'Click to visit
Wikipedia']]);
How can I get 'New South Wales' on a string to use it after a user selects
that region?
Let's say, for example, I want to have it on an alert box? I tried a couple
of thing
the documentation for this
method
herehttps://developers.google.com/chart/interactive/docs/reference#DataTable_getFormattedValue
.
Happy coding!
- Sergey
On Wed, Jun 5, 2013 at 9:30 AM, Carlos Moreira
carlost...@gmail.comjavascript:
wrote:
Hello all
My data is in this format:
data.addRows([[{v
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,
Hello!
I've been asked how the tooltips behave on right to left layouts (like
arabic or hebrew) but I didn't know the answer, so I'm asking here :)
Since we can't use HTML on the geochart tooltips, I know the options are
limited.
A basic solution would be to align the text to the right on
are coming
soon, so that problem should be easier to solve.
- Sergey
On Tue, Jun 25, 2013 at 12:38 PM, Carlos Moreira
carlost...@gmail.comjavascript:
wrote:
Hello!
I've been asked how the tooltips behave on right to left layouts (like
arabic or hebrew) but I didn't know the answer, so I'm
Thank you for these updates guys!
I am a big Geochart user, so thank you for the updates on that particular
chart :)
I was hoping to see html tooltips for the Geochart in this update, any
prediction on when this might be available? It would be an amazing feature!
Cheers
Terça-feira, 27 de
Hi everyone!
This is probably a javascript question, maybe not related to the API, but I
can't seem to solve this.
I don't even know how to explain the problem, so I created a very simple
version of my code just to exemplify the issue.
See it working here:
PM UTC-4, Carlos Moreira wrote:
Hi everyone!
This is probably a javascript question, maybe not related to the API, but
I can't seem to solve this.
I don't even know how to explain the problem, so I created a very simple
version of my code just to exemplify the issue.
See it working here
This is great news!
I am using Geocharts extensively, and I didn't notice any problem with the
new update.
Very happy that now HTML tooltips are available.
I am curious about the 'customizable marker styles' that you mention. Is
there any documentation or example about this?
Is this related
Hi Tobias!
I have the same problem of you. I am waiting a long time for an update to
solve this issue :)
This happens because they follow this list of countries:
http://unstats.un.org/unsd/methods/m49/m49regin.htm
Which doesn't include some of those countries in Europe (Cyprus,
Turkey)
Hi Guys!
You say you are strictly following this list as a reference for the
Geochart regions:
http://unstats.un.org/unsd/methods/m49/m49regin.htm
(which explains strange things like cyprus being in Asia and not Europe).
But according to this, there is a region code listed, that doesn't work
Hi Maria
You can try to use the subcontinents resolution to separate the Americas
that way.
It seems it's not documented (Geochart docs need updating, missing a lot of
stuff), but you can use:
resolution:'subcontinents'
then use the numeric codes for the subcontinents (north america, central
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
Here's an example: http://jsfiddle.net/cmoreira/Yk3Mc/
Sexta-feira, 28 de Março de 2014 16:05:53 UTC, Sergey escreveu:
It
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
Yeah... unfortunately it seems the API doesn't let us do this.
But it would be great to have an option to have static tooltips (that
wouldn't follow the mouse) or another tooltip.trigger option.
Would be very useful now that the HTML can be used inside the tooltips.
Sexta-feira, 21 de Março
Hi guys
Not sure this is an API problem, or a javascript problem.
I've got this code that works very well everywhere except on iOS devices:
http://jsfiddle.net/cmoreira/acS65/
I have objects with the map data and then I build the map according to that
data.
I've modified the code a bit for
events from touch
events in iOS. There is a post over on StackOverflow that should get you
started: http://stackoverflow.com/a/1781750/613559
On Monday, April 7, 2014 12:34:45 PM UTC-4, Carlos Moreira wrote:
Hi guys
Not sure this is an API problem, or a javascript problem.
I've got this code
be
seeing?
Any more data you can provide, and I'll try to help get to the bottom of
the problem.
On Monday, May 19, 2014 8:28:41 PM UTC-4, Carlos Moreira wrote:
Thank you for the fast reply asgallant!
I tried doing the touch events mapping, but I had no success.
After some hours wasted
Hi!
Like Andrew already said, it's better to geocode the addresses first.
If you use coordinates instead of text strings as the location data, the
markers will load much faster.
Like they in the documentation:
The fastest modes are dataMode='regions' with locations specified as ISO
codes,
Hi!
I'm trying to get Palestine to have data on the Western Asia map (it's big
enough to see the territory).
I understand that since it's a disputed territory it displays with the
crossed lines. But isn't the option 'domain' suposed to work like it does
with India?
I've tried a couple of
it
difficult to make it work. I will speak with the Geo engineer about this,
and likely file some bugs on our end.
On Thursday, May 29, 2014 8:38:36 PM UTC-4, Carlos Moreira wrote:
Hi Jeremy, thank you for looking into it.
The issue is not with the html tooltip, that works fine
Hi Joachim
I've been doing it with css.
Something like:
#visualization path { stroke-width:1px; }
http://jsfiddle.net/cmoreira/p0emnrxu/
But if you're using the markers mode or text mode, you can set the inactive
parameter to false:
http://jsfiddle.net/cmoreira/dfd1zu21/
Hope it helps!
On
When using iOS it seems that when a region is clicked the first time, the
event associated it's not triggered. Only when we click a second time.
Example:
https://jsfiddle.net/ggwo4tsa/
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API"
Hi!
We now get the warnings from the Google Maps API in the js console , when
using the geochart with data that needs to be geocoded.
*Google Maps API warning: NoApiKeys
https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys*
*Google Maps API warning:
More domains would be a great help to a lot of projects.
What other domains can we expect to be implemented?
On Wednesday, February 17, 2016 at 6:13:58 PM UTC, Sergey wrote:
>
> Sadly, our architecture does not work that way, and it is currently
> non-trivial to update our map data for the
Seems there's a bug when using the text display mode. Tooltips and actions
don't take effect.
Working markers example: https://jsfiddle.net/cmoreira/xuharyrb/
Same example, but with text mode: https://jsfiddle.net/cmoreira/mnrsn5ba/
(just changed displayMode:'markers' to 'text' )
Working
UPDATE
If I use the frozen 42 version, it works, so it's a problem with the
current version
google.charts.load('42', {packages: ['geochart']});
google.charts.setOnLoadCallback(drawChart);
On Monday, May 2, 2016 at 4:13:21 PM UTC+1, Carlos Moreira wrote:
>
> Seems there's a bu
Hi
Seems this issue exists after more than one year and several updates on
Safari and iOS.
Is there any workaround we can implement to have the HTML tooltips with the
select event working on iOS devices?
On Monday, April 7, 2014 at 6:34:45 PM UTC+2, Carlos Moreira wrote:
>
> H
Hi!
The Geochart documention links to this page:
https://developers.google.com/adwords/api/docs/appendix/metrocodes
which redirects to a different one that doesn't seem to provide the metro
codes / dma region codes.
Where can we find the list of the valid 3 digit metropolitan areas codes
for
The codes used to be listed here:
http://developers.google.com/adwords/api/docs/appendix/metrocodes
But now it seems we can find them here:
https://support.google.com/richmedia/answer/2745487?hl=en
sábado, 4 de Março de 2017 às 17:23:22 UTC, Itai Shalom escreveu:
>
> How did you find the code?
Hi!
Yes, you can do something like that. You'll just need to enable the HTML
tooltips option:
http://jsfiddle.net/cmoreira/4qp14znk/1/
Hope it helps.
Cheers, Carlos
segunda-feira, 13 de Março de 2017 às 06:11:25 UTC, Patcharapan
Tantichotkiat escreveu:
>
>
>
change
> that happened in that transition. I don't know what caused it yet, but
> using 42 until we find a fix seems to be a good workaround.
>
> On Mon, May 2, 2016 at 11:19 AM, Carlos Moreira <cmore...@gmail.com
> > wrote:
>
>> UPDATE
>>
>> If I use th
I found this:
https://support.google.com/richmedia/answer/2745487?hl=en
Hopefully these codes will match.
quinta-feira, 22 de Setembro de 2016 às 11:42:00 UTC+1, Carlos Moreira
escreveu:
>
> Hi!
> The Geochart documention links to this page:
> https://developers.google.com/adwo
I read this in the google maps docs:
The Google Maps APIs are served within China from the domain maps.google.cn.
This domain does not support https. When making requests to the Google Maps
APIs from China, please replace https://maps.googleapis.com with
http://maps.google.cn.
For the
/
On Monday, April 7, 2014 at 5:34:45 PM UTC+1, Carlos Moreira wrote:
>
> Hi guys
> Not sure this is an API problem, or a javascript problem.
> I've got this code that works very well everywhere except on iOS devices:
> http://jsfiddle.net/cmoreira/acS65/
>
> I have obje
Hi
I noticed that the Geochart used by Google Analytics on the overview page
seems a bit different, with a couple of interesting features, like the fact
that the country shapes/paths have a class with the country code, which is
very useful.
Is this something that will also be available in
I have the same question.
The new regions are now part of ISO standard also:
https://www.iso.org/obp/ui/#iso:code:3166:FR
On Friday, September 23, 2016 at 6:45:24 PM UTC+1, Sylvain Fuchs wrote:
>
> Hello
>
> France country is now divided into 7 region instead of 16 since a few
> months. Is
73 matches
Mail list logo