feomike / slope

makes a bunch of data objects for time series line charts
1 stars 0 forks source link

develop example json schema #5

Closed feomike closed 8 years ago

feomike commented 8 years ago

here is version #1;

{ "title": "HMDA Filers by Year", "description": "The number of HMDA Filers by Year", "layout": "hdma-filers-1990-2013", "categories": "chart", "data": { "year": { "1990": 9333, "1991": 9359, "1992": 9072, "1993": 9650, "1994": 9858, "1995": 9539, "1996": 9328, "1997": 7925, "1998": 7832, "1999": 7832, "2000": 7713, "2001": 7631, "2002": 7771, "2003": 8121, "2004": 8853, "2005": 8848, "2006": 8886, "2007": 8610, "2008": 8388, "2009": 8124, "2010": 7945, "2011": 7676, "2012": 7400, "2013": 7190 } } }

feomike commented 8 years ago

in order to develop another interaction (as envisioned in the google doc see issue #3 ) the user would have the ability to switch between a metric. as first envisioned that metric is total count of all LAR rows meeting the condition or a sum of the loan amounts meeting the selected condition. in this case the proposed json object could easily be modified the following way;

"1990": { "count": 1234, "loan_amount": 12355 }

the proposal is then to insert the metic definition inside the year object.