Showing posts with label flot in google maps. Show all posts
Showing posts with label flot in google maps. Show all posts

Friday, March 20, 2009

C2 Flot deployed to training

Quicksilver with Flot showing counts, with C2 based averages and outliers has been deployed to the training node.

Quicksilver can be reached at: http://ncphi.phgrid.net:8080/npdsgmaps-web/
If you need a user/pass please let someone at PHGrid know.

Next week will be trying to add some small tweaks for the Google maps bit (like zooming and a small overview window) and a few larger features like multiple condition and region selects, and different options for data aggregation (merge all the counts for all the zip3s in Atlanta, for example).

Thursday, March 19, 2009

Tomorrow: Flot with C2

Tomorrow I will be deploying Quicksilver with Flot running the C2 algorithm (if all goes as planned).

Then, it is a battle with the IE "Operation canceled" bug (although I will be trying something with this deploy) and a bunch of UI tweaks based on suggestions from multiple users. Things like click-through to new regions, and enabling better map functionality (scroll wheel zoom, mini-map). Also, some larger features like multiple zone select, combination of regions into counts, and multi-selected conditions will be considered.

Either way, I am just excited Flot is working. It's really pretty!

Tuesday, March 17, 2009

c2 in a popup

So, I got all the mechanics working (I think, I will need Will Duck to go over the mechanics with me to make sure I am doing it right) for the C2 algorithm.

Furthermore, I have tested them and put together the mechanics to deploy javascript arrays for flot... including making sure I have GMT-centered timestamps with my counts (much more annoying than it seems it should be).

I pasted the arrays generated into my flot tester, and the graphs worked :D

Tomorrow, I will work on getting the flotplot.jsp working on fetching the appropriate polygon and forwarding it to the flot JSP to build the arrays.

Then, it's plug it all together, import it into NPDS and modify how the dates are pulled and hopefully.. new charts in Quicksilver.

Yeah, this has been a sentence-paragraph kind of day. It means I have been thinking like a machine for most of the day.

Cheers

Monday, March 16, 2009

flot in a popup

I have successfully loaded flot charts in a little jsp in a popup (and using an iframe). I have also laid out all the mechanics and now just need to write the logic for getting 30-day rolling averages and then determining the standard deviation and applying that to make three arrays for flot to chart.

It should be easier than it sounds, I just need to get the algorythms and the looping right... but my mind is working on it now... and it's sort of tingling...

Cheers!

Friday, March 13, 2009

Flot gets it's own page.

This morning, I deployed a bug-fixed Quicksilver and made sure some of the older apps were still running.

The next big improvement is going to be flot charts... and I have been thinking of the best way to incorporate them. The old Google Charts were literally single strings of broken-out data that were sent to Google and returned the static image of a chart.

Flot is much more involved and has more javascript. It literally quadruples the amount of code that the old charts had, and it would probably not be a good candidate for simply plugging into the usual system (which would simply make the main pane of Quicksilver expand rapidly).

Thus, next week, I am going to try and encapsulate the flot data into it's own jsp page and just have the google map call the page and pass in the polygon id. The JSP would then call the code to calculate everything, fill the arrays for the flot chart, and then plot them out in a main chart and an overview.

The first step will be just making sure that a HTML popup calling an external page will display properly. Then it is automating the load setups and adjusting the queries to actually pull 30 days of leading data and running the C2 algorithm to get the data for the arrays... the arrays leading to the chart lines.

Cheers, looks like next week will be fun.