Great… I tried to adapt this to the geomap. I believe I would just have to swap out the code for the bar chart for the code to draw the geomap, but I think it needs additional tweaking.
Does it look like I'm on the right track? http://jsfiddle.net/jayjgal/HU56R/ On Dec 8, 2012, at 9:55 PM, asgallant <[email protected]> wrote: > Ahh, ok, what you need is a category filter for the year. The data set is a > bit more complicated, but if you like the look of the category filter, I > wrote a hack that turns one into a column selector: > http://jsfiddle.net/asgallant/WaUu2/ > > On Saturday, December 8, 2012 12:50:30 PM UTC-5, J.J. Gallagher wrote: > Thanks... yes I'm looking to do something similar here. > > I put together a static version below. This template can only handle one > column of data at a time, but I entered the two I want to work with. I only > entered the data for two states so far because I'm sure it will have to be > changed. I want to look at two datasets, Latino population and Eligible > Latino voters, over 4 periods of time: 2000, 2004, 2008 and 2012. > > So there would be two controls, one for year, and one for the data, that > would simply repopulate the map with the selected time and dataset. > > http://savedbythegoog.appspot.com/?id=1b44d060ddb9a64936cc23efd138dcf4fa44ed2e > > On Friday, December 7, 2012 11:31:45 PM UTC-5, asgallant wrote: > It might help to build the chart with static data first, and once you've got > that working, figure out how you would like to apply the control(s) to it. > In that example, the data is aggregated over the selected time period and > displayed in the GeoChart - is that what you are trying to do here? > > On Friday, December 7, 2012 9:56:39 PM UTC-5, J.J. Gallagher wrote: > Hi - I apologize if the answer to this is obvious... I am looking to apply a > control to a geomap, or a geochart to display various datasets over time. I > looked at adapting some of the code listed in the playground under dashboards > and controls, but have not have had success. I also looked at adapting this > code: http://jsfiddle.net/asgallant/Fs3Hb/ but can't get it running > > Could someone point me in the right direction? > > Thanks very much > > > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-visualization-api/-/8Uh4Dn-zTlgJ. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
