API call save for saving the report
Data source
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="save()">Save report</button>
<button onclick="saveWithData()">Save report with data</button>
<div id="pivot-container"></div>
JavaScript
new Flexmonster({
container: "#pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
width: "100%",
height: 430,
report: {
dataSource: {
filename: "https://cdn.flexmonster.com/data/data.csv"
}
}
});
function save() {
flexmonster.save();
}
function saveWithData() {
flexmonster.save({
embedData: true
});
}