No aggregation labels example
Options
by Flexmonster Pivot Table
HTML
<link rel="stylesheet" href="https://s3.amazonaws.com/flexmonster/2.3/demo.css">
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<button onclick="showAggregationLabels()">Show aggregation labels</button>
<button onclick="hideAggregationLabels()">Hide aggregation labels</button>
<div id="pivot-container"></div>
JavaScript
function showAggregationLabels() {
flexmonster.setOptions({
showAggregationLabels: true});
flexmonster.refresh();
}
function hideAggregationLabels() {
flexmonster.setOptions({
showAggregationLabels: false});
flexmonster.refresh();
}
var pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
width: "100%",
height: 430,
toolbar: true,
report: {
dataSource: {
filename: "data/data.csv"
},
options: {
showAggregationLabels: false
},
slice: {
columns: [],
rows: [{
uniqueName: "Country"
}, {
uniqueName: "[Measures]"
}],
measures: [{
uniqueName: "Price",
caption: "Total Price"
}, {
uniqueName: "Quantity"
}],
}
}
});