Aggregation is always count even when set to sum
Trying to set the aggregation of the count measure to sum does not seem to work
by yahmed
HTML
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div id="pivot-container"></div>
JavaScript
var pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
width: "100%",
height: 430,
toolbar: true,
report: {
"dataSource": {
"data": [
{
"MaritalStatus": {
"type": "string"
},
"HomeOwner": {
"type": "string"
},
"Count": {
"type": "number"
},
"Mean Income": {
"type": "number"
}
},
[
"Divorced",
"Council",
2303,
69078.05167173252
],
[
"Divorced",
"Owner",
4014,
45799.53811659193
],
[
"Divorced",
"Parent",
572,
30465.58916083916
],
[
"Divorced",
"Parents",
2820,
52594.18439716312
],
[
"Divorced",
"Rental",
3126,
50299.78246960972
],
[
"Divorced",
"Unknown",
1241,
54151.334407735696
],
[
"Married",
"Council",
2745,
56311.2058287796
],
[
"Married",
"Owner",
5674,
41691.97796968629
],
[
"Married",
"Parent",
1842,
30953.66286644951
],
[
"Married",
"Parents",
4404,
45021.0876475931
],
[
"Married",
"Rental",
5037,
45353.72165971809
],
[
"Married",
"Unknown",
2435,
53154.2045174538
],
[
"Remarried",
"Council",
1684,
54079.95843230404
],
[
"Remarried",
"Owner",
3316,
42047.05277442702
],
[
"Remarried",
"Parent",
602,
32226.724252491695
],
[
"Remarried",
"Parents",
2758,
46584.828136330674
],
[
...