OpenTwinCities / mnpay

Making public wage data actually public
http://www.mnpay.org/
MIT License
6 stars 7 forks source link

Plotting #37

Closed kjschiroo closed 7 years ago

kjschiroo commented 7 years ago

@ahangsleben Adding in plotting functionality

kjschiroo commented 7 years ago

Okay. First, as noted in the commit comments, @ahangsleben was right about dataMax looking bad. It has been fixed.

I've adjusted the api to expose server limits, both for general queries and stats queries. Right now stats queries are limited to those that only include 50,000 wages. This makes the server reasonably responsive on my machine and keeps the functionality working for almost all meaningful searches other than the "all" search. We should still implement a spinner, but I believe it is no longer a must have for merging this branch.

Longer term, we should look into the feasibility of auto complete in queries. This should reduce the variety of queries we would receive and make caching of stats requests a more effective option.