質問編集履歴
1
コードを
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,6 +35,8 @@
|
|
35
35
|
<body>
|
36
36
|
|
37
37
|
<script type="text/javascript" >
|
38
|
+
|
39
|
+
```
|
38
40
|
|
39
41
|
var data = [
|
40
42
|
|
@@ -140,7 +142,7 @@
|
|
140
142
|
|
141
143
|
"合計": function() { return tpl.sum()(["shot"]) },
|
142
144
|
|
143
|
-
"成功率": function() { return tpl.countAsFractionOfRow()() }
|
145
|
+
"成功率": function() { return tpl.countAsFractionOfRow()() }
|
144
146
|
|
145
147
|
},
|
146
148
|
|
@@ -156,9 +158,23 @@
|
|
156
158
|
|
157
159
|
|
158
160
|
|
161
|
+
``````jQuery```
|
162
|
+
|
163
|
+
|
164
|
+
|
159
165
|
</script>
|
160
166
|
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
```
|
172
|
+
|
161
173
|
<div id="output"></div>
|
174
|
+
|
175
|
+
``````HTML
|
176
|
+
|
177
|
+
```
|
162
178
|
|
163
179
|
</body>
|
164
180
|
|
@@ -172,4 +188,4 @@
|
|
172
188
|
|
173
189
|
count,sumは上記のソースだけで実装できました。しかし、countAsFractionOfRow()では実装できませんでした。どう書けば実装できるのかどなたか教えてください。
|
174
190
|
|
175
|
-
参考にしたページは「http://tweeeety.hateblo.jp/entry/20140203/1391408894」と「https://github.com/nicolaskruchten/pivottable/wiki/Aggregators」です。
|
191
|
+
参考にしたページは「[PivotTable.jsを使ってjavascriptで集計を簡単に表示するテスト](http://tweeeety.hateblo.jp/entry/20140203/1391408894)」と「[Aggregators](https://github.com/nicolaskruchten/pivottable/wiki/Aggregators)」です。
|