Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder
    Join Date
    Dec 2011
    Posts
    201
    Thanks
    12
    Thanked 26 Times in 26 Posts

    Data | User Interaction | Visualization

    Hello,

    I am looking for some strong resources about the topics above.

    I am trying to create a map for my website that visualizes Americas opinions on who will win the 2012 election... Obama vs the Republicans.

    I have a data set that will be the base, but I would like to update the map as users take the accompanying poll and as the data set changes.

    Any ideas or information would be awesome!

    Thanks

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,919
    Thanks
    79
    Thanked 4,423 Times in 4,388 Posts
    Google Maps.

    You want to do this by state? Or finer level?

    With Google Maps, you could easily set it up so that (example only!) you would have a little icon that would roughly represent the Dems vs. Reps as a tiny bar graph. Then the user would click on the icon and it would expand into a larger image with accompanying statistics.

    The nice part is you can come up showing the entire map, with states like Rhode Island impossibly small, and the user simply uses the familiar controls of all google maps to recenter the map and expand (say) New England to fill the screen. And you don't have to code any of that part.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,919
    Thanks
    79
    Thanked 4,423 Times in 4,388 Posts
    I should note that you might want to do this mostly with server-side coding, with only the minimal amount of JavaScript needed to invoke the Google Map.

    After all, any kind of data collection (including your poll) *must* be done with server-side coding (that is, PHP or ASP or JSP or ...). Can't do it with just HTML and JS.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #4
    Regular Coder
    Join Date
    Dec 2011
    Posts
    201
    Thanks
    12
    Thanked 26 Times in 26 Posts
    Hey Thanks Old Pedant.

    I had thought about Google as a route, the reason I wanted to stay away from it was because of the extra information, i.e. streets, cities, etc, as well as the limitation in Style, I have never used the API, I will read more. Implementing your idea of expanding the stats from a state icon into a pop out window is a good idea, that would allow for my own designs/detail in the pop-out, while using the probable ease of Google.

    Have you heard of http://polymaps.org/ex/?

    Thanks

  • #5
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,919
    Thanks
    79
    Thanked 4,423 Times in 4,388 Posts
    Hadn't heard of it. So took a peek. Fun thing: Did you note they are using the Google Apps Engine?

    So just changing the map, but not the basic coding for resizing, moving, etc., it would appear.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #6
    Regular Coder
    Join Date
    Dec 2011
    Posts
    201
    Thanks
    12
    Thanked 26 Times in 26 Posts
    So basically they did exactly what you told me to do? haha

    building off this http://code.google.com/appengine/ they develop their app on googles base?

  • #7
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,919
    Thanks
    79
    Thanked 4,423 Times in 4,388 Posts
    That's what I implied from their comment. Don't know it for a fact, but their maps "feel" awfully googlish.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #8
    Regular Coder
    Join Date
    Dec 2011
    Posts
    201
    Thanks
    12
    Thanked 26 Times in 26 Posts
    Hey Old Pedant could you please help me understand the structure when using googles engine to work with my site and data.


    Here are the elements I will be using I am assuming.
    My Site (based in html/php/mysql) -- My data xml format -- Google's engine (...)

    Does the engine just sit within my designated page? And through the engine the xml data is parsed and then rendered? Or does my php parse the xml data and plug it into googles engine which then renders it?

    sorry new to the back end stuff. This may be the wrong place to discuss this.

    Thanks - Micah

  • #9
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,919
    Thanks
    79
    Thanked 4,423 Times in 4,388 Posts
    Asking the wrong person. I haven't used google's app engine. I would *bet*, though, that it's all client side.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •