jQuery.sap.require("graphomate/ui/DatatypeDictionary");
jQuery.sap.require("graphomate/ui/tables/Table");
jQuery.sap.require("graphomate/ui/tables/enums/RowOrder");
jQuery.sap.require("graphomate/ui/enums/DeviationType");
var dtd = new graphomate.ui.DatatypeDictionary();
var table = new graphomate.ui.tables.Table({
width: "500px",
rowOrder: graphomate.ui.tables.enums.RowOrder.PostOrder,
showSumBorders: true,
sumPadding: 1.5,
rows: [
new graphomate.ui.tables.Row({
title: "Monitors",
hierarchyLevel: 0,
dataPerColumn: [74800000, 65400000]
}),
new graphomate.ui.tables.Row({
title: "North",
hierarchyLevel: 1,
dataPerColumn: [15400000, 15000000]
}),
new graphomate.ui.tables.Row({
title: "South",
hierarchyLevel: 1,
dataPerColumn: [59400000, 50400000]
}),
new graphomate.ui.tables.Row({
title: "Tablets",
hierarchyLevel: 0,
dataPerColumn: [117900000, 108400000]
}),
new graphomate.ui.tables.Row({
title: "North",
hierarchyLevel: 1,
dataPerColumn: [70100000, 53900000]
}),
new graphomate.ui.tables.Row({
title: "South",
hierarchyLevel: 1,
dataPerColumn: [47800000, 54500000]
})
],
columns: [
new graphomate.ui.tables.DataColumn("column-act",{
title: "ACT",
datatype: "AC"
}),
new graphomate.ui.tables.DataColumn("column-bud",{
title: "BUD",
datatype: "BU"
}),
new graphomate.ui.tables.DeviationColumn({
type: graphomate.ui.enums.DeviationType.Absolute,
title: "\u0394ACT-BUD",
measureColumnId: "column-act",
baseColumnId: "column-bud"
})
]
});