简体   繁体   中英

How to create a pivot table with sum matrix using javascript(jquery,native js)?

I want to get a result that will show a pivot table with matrix summation value from a json request. Example:

Business MajorBusiness Country Jan Feb Marc Total
test 1 test 1 China 1 2 3 6
test 2 test 1 China 2 2 2 6
Total for China ============= 3 4 5 12

Thanks in advance if someone can help me for my project.

我创建了一个名为PivotTable.js的jQuery插件: https : //github.com/nicolaskruchten/pivottable

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM