googleVis icon indicating copy to clipboard operation
googleVis copied to clipboard

Multiple input columns for "hovervar" in gvisGeoChart?

Open Masonavic opened this issue 8 years ago • 3 comments

Hi,

I noticed that in the documentation for GeoCharts, they show an example where they use 2 columns of data for the hovervar. On the other hand, the documentation for gvisGeoChart seems to imply that only one column of data can be passed to the hovervar argument. Is this the case? If so, will you be implementing multiple columns? It seems like a reasonably easy thing to do, looking at the var data = block in the documentation link above...

thanks!

Masonavic avatar Dec 30 '16 20:12 Masonavic

Isn't this already doable by specifying the colour and size variables? Here is an example:

library(googleVis)
CityPopularity$Area = 1:6
plot(gvisGeoChart(CityPopularity, locationvar='City', 
  colorvar='Popularity', sizevar = 'Area', 
  options=list(region='US',displayMode='markers'))

mages avatar Dec 31 '16 21:12 mages

For a city, sure. But I want to do this at a country level. Like, say, have the tooltip show the total population and GDP, or instance, while the map color intensity shows population density.

Masonavic avatar Dec 31 '16 21:12 Masonavic

Ah, ok. Not sure this is possible.

mages avatar Dec 31 '16 21:12 mages