Group by key in crossfilter data in table structure. I do not need the chart -


i have large set of records on 5 million. have managed pull data json using crossfilter in table structure. want group data using symbol key. appreciated.

here code

    d3.json("my_json_file.json", function(error, json_data) {         var data = crossfilter(json_data),         typedimension = stocks_jsoncs.dimension(function (d) {             return d.symbol;         });         typegroup = typedimension.group().all();         $('#stk_table').datatable({             "aadata": typedimension.top(infinity),                 "aocolumns": [{                 "mdataprop": "id"             }, {                 "mdataprop": "symbol"             }, {                 "mdataprop": "stock_name"             }, {                 "mdataprop": "changepercent"             }, {                 "mdataprop": "close"             }, {                 "mdataprop": "volume"             }]         });     }); 

here few content of json file:

    [{"id":"11","symbol":"01kg","stock_name":"scottish american investment co. plc","changepercent":"0","close":"125.00","volume":"0"},{"id":"63","symbol":"01kg","stock_name":"scottish american investment co. plc","changepercent":"0","close":"125.00","volume":"0"},{"id":"64","symbol":"01oo","stock_name":"nordic investment bank 5.25% nts 26\/11\/19","changepercent":"-0.532","close":"118.30","volume":"2000"},{"id":"65","symbol":"01oo","stock_name":"nordic investment bank 5.25% nts 26\/11\/19","changepercent":"-0.264","close":"118.93","volume":"6000"},{"id":"66","symbol":"01oo","stock_name":"nordic investment bank 5.25% nts 26\/11\/19","changepercent":"0.602","close":"119.25","volume":"7000"},{"id":"67","symbol":"01oo","stock_name":"nordic investment bank 5.25% nts 26\/11\/19","changepercent":"1.747","close":"118.53","volume":"3000"},{"id":"68","symbol":"01oo","stock_name":"nordic investment bank 5.25% nts 26\/11\/19","changepercent":"0","close":"116.50","volume":"10000000"},{"id":"69","symbol":"04ll","stock_name":"british land company plc","changepercent":"0","close":"115.00","volume":"0"},{"id":"132","symbol":"06gh","stock_name":"barclays bank plc 9% perm int brg cap bds #","changepercent":"0.8","close":"126.00","volume":"0"},{"id":"159","symbol":"06gh","stock_name":"barclays bank plc 9% perm int brg cap bds #","changepercent":"0.412","close":"122.00","volume":"0"},{"id":"160","symbol":"06gh","stock_name":"barclays bank plc 9% perm int brg cap bds #","changepercent":"0","close":"121.50","volume":"0"},{"id":"179","symbol":"06gh","stock_name":"barclays bank plc 9% perm int brg cap bds #","changepercent":"0","close":"119.50","volume":"0"},{"id":"180","symbol":"06gh","stock_name":"barclays bank plc 9% perm int brg cap bds #","changepercent":"-3.239","close":"119.50","volume":"6000"},{"id":"181","symbol":"06gh","stock_name":"barclays bank plc 9% perm int brg cap bds #","changepercent":"0","close":"123.50","volume":"0"},{"id":"191","symbol":"06gh","stock_name":"barclays bank plc 9% perm int brg cap bds #","changepercent":"0","close":"121.50","volume":"0"},{"id":"192","symbol":"06gh","stock_name":"barclays bank plc 9% perm int brg cap bds #","changepercent":"0","close":"121.50","volume":"0"},{"id":"193","symbol":"06gh","stock_name":"barclays bank plc 9% perm int brg cap bds #","changepercent":"0","close":"121.50","volume":"0"},{"id":"194","symbol":"06gh","stock_name":"barclays bank plc 9% perm int brg cap bds #","changepercent":"0","close":"121.50","volume":"0"},{"id":"195","symbol":"06hb","stock_name":"hemingway debenture ld","changepercent":"0","close":"130.00","volume":"0"},{"id":"228","symbol":"06hb","stock_name":"hemingway debenture ld","changepercent":"0","close":"130.00","volume":"0"}] 


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -