HightLight Grand Total row example 2
Flex-monster HightLight Grand Total row example 2
by lekhrajpanjwani
HTML
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div id="pivot-container"></div>
CSS
.fm-cell.fm-grand-total {
background-color: rgba(128, 194, 242, 0.5) !important;
}
JavaScript
new Flexmonster({
container: "#pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
width: "100%", height: 430,
toolbar: true,
report: {
dataSource: {
filename: "data/data.csv"
},
slice: {
columns: [{
uniqueName: "Color"
}],
rows: [{
uniqueName: "Country"
}, {
uniqueName: "[Measures]"
}],
measures: [{
uniqueName: "Price",
format: "currency"
}, {
uniqueName: "Discount",
format: "currency"
}],
},
options: {
grid: {
type: "flat"
},
grandTotalsPosition: "bottom"
}
}
});