I have a data source that returns data from a remove source (data = [{"i":27,"p":10,"o":"Yes"},{"i":29,"p":0,"o":"No"},{"i":30,"p":10,"o":"Yes"},{"i":31,"p":10,"o":"Yes"},{"i":32,"p":10,"o":"Yes"},{"i":33,"p":10,"o":"Yes"},{"i":35,"p":10,"o":"Yes"},{"i":37,"p":0,"o":"No"},{"i":38,"p":0,"o":"No"}...).
On the client side I'd like to filter, group and sum/count the data in various ways fx:
filter: i = 32
group by: o
sum p
is this possible using only datasouce methods?
or should I look into using another js framework like underscore.js?
http://jsbin.com/tosito/2/edit?js,console,output
On the client side I'd like to filter, group and sum/count the data in various ways fx:
filter: i = 32
group by: o
sum p
is this possible using only datasouce methods?
or should I look into using another js framework like underscore.js?
http://jsbin.com/tosito/2/edit?js,console,output