test1
asdasdasdsad
by lekhrajpanjwani
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="pdf()">Export to PDF</button>
<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: getData()
},
slice: {
rows: [
{uniqueName: "Color"},
{uniqueName: "M"},
{uniqueName: "W"},
{uniqueName: "Country"},
{uniqueName: "State"},
{uniqueName: "City"},
],
columns: [
{uniqueName: "[Measures]"}
],
measures: [
{
uniqueName: "Price",
format: "currency"
},
{uniqueName: "Quantity",format: "currency"},
{uniqueName: "AA",format: "currency"},
{uniqueName: "BB CC CVV",format: "currency"},
{uniqueName: "CC",format: "currency"},
{uniqueName: "DD",format: "currency"},
{uniqueName: "EE",format: "currency"},
{uniqueName: "FF",format: "currency"},
{uniqueName: "GG VV ZZ",format: "currency"},
{uniqueName: "HH",format: "currency"},
{uniqueName: "II",format: "currency"},
{uniqueName: "JJ KK LLL",format: "currency"},
{uniqueName: "KK",format: "currency"},
{uniqueName: "LL",format: "currency"},
{uniqueName: "Net Moves",format: "currency"},
{uniqueName: "NNyrtytrytrytrytrytry",format: "currency"},
]
},
options: {
viewType: "grid",
grid: {
type: "flat"
}
},
formats: [
{
"name": "",
"thousandsSeparator": ",",
},
{
"name": "currency",
"thousandsSeparator": ",",
"decimalSeparator": ".",
"decimalPlaces": 2,
"currencySymbol": "$",
"currencySymbolAlign": "left",
...