sheetPivotTable.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. window.sheetPivotTable = {
  2. "name": "PivotTable",
  3. "color": "",
  4. "config": {},
  5. "index": "7",
  6. "chart": [],
  7. "status": 0,
  8. "order": "7",
  9. "column": 18,
  10. "row": 36,
  11. "celldata": [{
  12. "r": 0,
  13. "c": 0,
  14. "v": "count:score"
  15. }, {
  16. "r": 0,
  17. "c": 1,
  18. "v": "science"
  19. }, {
  20. "r": 0,
  21. "c": 2,
  22. "v": "mathematics"
  23. }, {
  24. "r": 0,
  25. "c": 3,
  26. "v": "foreign language"
  27. }, {
  28. "r": 0,
  29. "c": 4,
  30. "v": "English"
  31. }, {
  32. "r": 0,
  33. "c": 5,
  34. "v": "total"
  35. }, {
  36. "r": 1,
  37. "c": 0,
  38. "v": "Alex"
  39. }, {
  40. "r": 1,
  41. "c": 1,
  42. "v": 1
  43. }, {
  44. "r": 1,
  45. "c": 2,
  46. "v": 1
  47. }, {
  48. "r": 1,
  49. "c": 3,
  50. "v": 1
  51. }, {
  52. "r": 1,
  53. "c": 4,
  54. "v": 1
  55. }, {
  56. "r": 1,
  57. "c": 5,
  58. "v": 4
  59. }, {
  60. "r": 2,
  61. "c": 0,
  62. "v": "Joy"
  63. }, {
  64. "r": 2,
  65. "c": 1,
  66. "v": 1
  67. }, {
  68. "r": 2,
  69. "c": 2,
  70. "v": 1
  71. }, {
  72. "r": 2,
  73. "c": 3,
  74. "v": 1
  75. }, {
  76. "r": 2,
  77. "c": 4,
  78. "v": 1
  79. }, {
  80. "r": 2,
  81. "c": 5,
  82. "v": 4
  83. }, {
  84. "r": 3,
  85. "c": 0,
  86. "v": "Tim"
  87. }, {
  88. "r": 3,
  89. "c": 1,
  90. "v": 1
  91. }, {
  92. "r": 3,
  93. "c": 2,
  94. "v": 1
  95. }, {
  96. "r": 3,
  97. "c": 3,
  98. "v": 1
  99. }, {
  100. "r": 3,
  101. "c": 4,
  102. "v": 1
  103. }, {
  104. "r": 3,
  105. "c": 5,
  106. "v": 4
  107. }, {
  108. "r": 4,
  109. "c": 0,
  110. "v": "total"
  111. }, {
  112. "r": 4,
  113. "c": 1,
  114. "v": 3
  115. }, {
  116. "r": 4,
  117. "c": 2,
  118. "v": 3
  119. }, {
  120. "r": 4,
  121. "c": 3,
  122. "v": 3
  123. }, {
  124. "r": 4,
  125. "c": 4,
  126. "v": 3
  127. }, {
  128. "r": 4,
  129. "c": 5,
  130. "v": 12
  131. }],
  132. "ch_width": 4748,
  133. "rh_height": 1790,
  134. "luckysheet_select_save": [{
  135. "row": [0, 0],
  136. "column": [0, 0]
  137. }],
  138. "luckysheet_selection_range": [],
  139. "scrollLeft": 0,
  140. "scrollTop": 0,
  141. "isPivotTable": true,
  142. "pivotTable": {
  143. "pivot_select_save": {
  144. "left": 0,
  145. "width": 73,
  146. "top": 0,
  147. "height": 19,
  148. "left_move": 0,
  149. "width_move": 369,
  150. "top_move": 0,
  151. "height_move": 259,
  152. "row": [0, 12],
  153. "column": [0, 4],
  154. "row_focus": 0,
  155. "column_focus": 0
  156. },
  157. "pivotDataSheetIndex": 6, //The sheet index where the source data is located
  158. "column": [{
  159. "index": 3,
  160. "name": "subject",
  161. "fullname": "subject"
  162. }],
  163. "row": [{
  164. "index": 1,
  165. "name": "student",
  166. "fullname": "student"
  167. }],
  168. "filter": [],
  169. "values": [{
  170. "index": 4,
  171. "name": "score",
  172. "fullname": "count:score",
  173. "sumtype": "COUNTA",
  174. "nameindex": 0
  175. }],
  176. "showType": "column",
  177. "pivotDatas": [
  178. ["count:score", "science", "mathematics", "foreign language", "English", "total"],
  179. ["Alex", 1, 1, 1, 1, 4],
  180. ["Joy", 1, 1, 1, 1, 4],
  181. ["Tim", 1, 1, 1, 1, 4],
  182. ["total", 3, 3, 3, 3, 12]
  183. ],
  184. "drawPivotTable": false,
  185. "pivotTableBoundary": [5, 6]
  186. }
  187. }
  188. // export default sheetPivotTable;