JavaScript
var pivot = $("#pivot-container").flexmonster({
componentFolder: "https://s3.amazonaws.com/flexmonster/2.3/",
width: "100%",
height: 430,
toolbar: true,
report: {
dataSource: {
dataSourceType: "json",
data: getData()
},
options: {
datePattern: "HH:00",
configuratorActive: false
}
}
});
function getData() {
return [{
"ID": {
type: "date string"
},
"date": {
type: "date string"
},
"unit": {
type: "string"
},
"verdict": {
type: "string"
},
"channelName": {
type: "string"
},
"bufferTime": {
type: "number"
}
}, {
"ID": "1",
"date": "2016-11-22T00:16:00",
"unit": "Unit 1",
"verdict": "PASS",
"channelName": "EUROSPORT",
"bufferTime": 3120.08
}, {
"ID": "2",
"date": "2016-11-22T00:16:00",
"unit": "Unit 1",
"verdict": "PASS",
"channelName": "DISCOVERY",
"bufferTime": 2979.22
}, {
"ID": "3",
"date": "2016-11-22T00:16:00",
"unit": "Unit 1",
"verdict": "PASS",
"channelName": "MEGA",
"bufferTime": 3400.12
}, {
"ID": "4",
"date": "2016-11-22T00:20:00",
"unit": "Unit 1",
"verdict": "PASS",
"channelName": "EUROSPORT",
"bufferTime": 3030.58
}, {
"ID": "5",
"date": "2016-11-22T00:20:00",
"unit": "Unit 1",
"verdict": "PASS",
"channelName": "DISCOVERY",
"bufferTime": 3102.66
}, {
"ID": "6",
"date": "2016-11-22T00:20:00",
"unit": "Unit 1",
"verdict": "PASS",
"channelName": "MEGA",
"bufferTime": 3456.11
}, {
"ID": "7",
"date": "2016-11-22T00:24:00",
"unit": "Unit 1",
"verdict": "PASS",
"channelName": "EUROSPORT",
"bufferTime": 2900.58
}, {
"ID": "8",
"date": "2016-11-22T00:24:00",
"unit": "Unit 1",
"verdict": "PASS",
"channelName": "DISCOVERY",
"bufferTime": 2902.66
}, {
"ID": "9",
"date": "2016-11-22T00:24:00",
"unit": "Unit 1",
...