Using defaultDateType to specify the default date type
Options
HTML
<link rel="stylesheet" href="https://s3.amazonaws.com/flexmonster/2.3/demo.css">
<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: {
dataSourceType: "json",
data: [
{
"type": "left",
"name": "aaa",
"n":14
},
{
"type": "right",
"name": "bbb",
"n":17
},
{
"type": "left",
"name": "ccc",
"n":10
}
]
},
slice: {
rows:[{"uniqueName": "type"},{"uniqueName": "name"}],
columns: [{ uniqueName: "[Measures]" }],
measures: [
{
"uniqueName": "n",
"caption": "n count",
"formula": "count('n')"
}
]
}
}
});