smartchicago / chicagoworksforyou

A citywide dashboard with ward-by-ward views of service delivery in Chicago. Includes complete API. Built using Chicago Open311 data.
http://www.chicagoworksforyou.com
MIT License
17 stars 6 forks source link

On requests/##/counts.json, include max value #157

Closed santheo closed 11 years ago

santheo commented 11 years ago

Don't kill me, but I'd like to add one piece of data to this endpoint. If I'm navigating week by week on a service detail page, the scale of the chart changes on each click. Which means that comparing the size of the bar between weeks becomes meaningless. Could you add a value to the CityData object that indicates the max value of this service type? It should be equal to the most number of requests of the given service type in any ward, in any week in history. If that's too difficult, you can send the max number ever for one day in any ward (for that service), and I'll just multiply it by 7.

(Alternative math idea: retrieve the 7 highest days in history, and add them together. That number would be slightly smaller than max*7, thus providing a slightly more readable scale.)

Would this be doable?

cgansen commented 11 years ago

totally doable.

santheo commented 11 years ago

FYI I added an alternate idea to the original post for making the math easier, maybe. In case you didn't see that.

santheo commented 11 years ago

Also, thanks.

santheo commented 11 years ago

Re-opening in hope of changing this to sum(highest 7 values of all-time)