fixed bug and reverted back to old bug!
This version: when you request data, nothing happens when the data arrive. You have to request a new graph be drawn.
Old version: When you request data, a new graph gets drawn. BUT if you are on a map screen, the graph is drawn out of sight. When you request a new graph, the first graph is shown, and your new graph is now out of sight.
Best solution for the future: Add a conditional. When data get fetched, only draw a graph if you are on a graphing page.
fixed bug: When you request new data, it will be plotted in whatever graph style you currently have displayed. It will not draw a graph if you are looking at a map or the about section. I did this by recording the state in viewState, and checking it with checkState whenever new data are requested.