1
我被卡住了,需要通過使用由其他兩個維度索引的數據找到一個維度的數據總和。通過在dc.js中比較另外兩個維度中的數據來維度中的數據總和
例子:
"mode_device","method","discount","time","first_time","paid","p_id","p_sku"
"Desktop","EBS",,"1344887090","1344887090","1079","8786","PPLB03571285"
"Desktop","MOBIKWIK-WALLET","89","1474371140","1474371140","591","99068","PPLB009DCBBFREE"
"AndroidApp","COD","97","1474371149","1438844849","647","72321","PPLB034601"
"Desktop","JUSPAY","60","1474371158","1474371158","398","92389","PPLB713SQ306"
"AndroidApp","COD","190","1474371247","1448993680","1261","72685","PLB0029regenerist3"
"Desktop","JUSPAY","90","1474371346","1474371346","599","86728","PPLB66719804817"
"Desktop","DEBITCARD","60","1474371366","1465733603","398","92389","PPLB713SQ306"
"AndroidApp","COD","0","1474371404","1474371404","577","106032","PPLB0335PA0990NM"
"Desktop","COD","43","1474371404","1468956726","356","13221","PPLB039605"
在這裏,我們比較mode_device
和method
,我們必須從支付返回數據的總和。
例子: AndroidApp和COD可以重複幾次可以說數據有類似
"Android","COD","234"
"Android","Ebs","234"
"Ios","COD","234"
"Ios","COD","234"
"Android","COD","234"
我們必須使用dc.js圖表返回像
Android-COD:468
Android-Ebs:234
Ios-COD:468
。