Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add #8

Open
wants to merge 34 commits into
base: andrea
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add all
  • Loading branch information
Ferdinand Scheubeck committed Mar 16, 2016
commit 0a8e862caaa8d5e50cd9ebabe2a446a585cb327b
7 changes: 7 additions & 0 deletions css/fullScreenStyles.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,15 @@ h4 {
margin: 0.5rem;
}

.customButton {

margin: 0.9rem;
text-align: center;
}
.customTileSize div {
font-size: 30px !important;
}



/* Background Reference: http://www.thetahealing-muenchen.com/helping-hand.jpg*/
238 changes: 238 additions & 0 deletions download/View1.controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
sap.ui.define([
"sap/ui/core/mvc/Controller",
'sap/ui/core/mvc/Controller',
'sap/ui/model/json/JSONModel'
], function(jQuery, Controller, JSONModel) {
"use strict";

return Controller.extend("team5.controller.View1", {

onInit: function() {
// set mock model
/////////////////////////////////// vizFrame for line chart //////////////////////////////////////////////////////////////////////////
var oVizFrame = this.getView().byId("idoVizFrame");
//var oVizFramePath = jQuery.sap.getModulePath("sap.suite.ui.commons.sample.ChartContainerSimpleToolbar", "/ChartContainerData.json")

//var oModel_bl = new sap.ui.model.json.JSONModel(oVizFramePath);
var oModel_bl = new sap.ui.model.json.JSONModel({
"Products": [{
"Country": "China",
"Profit": 100,
"Forcast": 200,
"Target": 20,
"Revenue": 20,
"Revenue2": 20,
"Revenue3": 512
}, {
"Country": "Japan",
"Profit": 159,
"Forcast": 140,
"Target": 150,
"Revenue": 30,
"Revenue2": 100,
"Revenue3": 303
}, {
"Country": "India",
"Profit": 129,
"Forcast": 120,
"Target": 100,
"Revenue": 200,
"Revenue2": 222,
"Revenue3": 263
}, {
"Country": "France",
"Profit": 58,
"Forcast": 60,
"Target": 80,
"Revenue": 116,
"Revenue2": 152,
"Revenue3": 113
}, {
"Country": "Austrilia",
"Profit": 149,
"Forcast": 120,
"Target": 150,
"Revenue": 249,
"Revenue2": 292,
"Revenue3": 443
}, {
"Country": "Sweden",
"Profit": 49,
"Forcast": 60,
"Target": 55,
"Revenue": 1449,
"Revenue2": 242,
"Revenue3": 243
}]
});
var oDataset_bl = new sap.viz.ui5.data.FlattenedDataset({
dimensions: [{
name: 'Country',
value: "{Country}"
}],
measures: [{
group: 1,
name: "Revenue",
value: "{Revenue}"
},{
group: 1,
name: "Target",
value: "{Target}"
}],
data: {
path: "/Products"
}
});

oVizFrame.setVizProperties({
plotArea: {
showGap: true
}
});
oVizFrame.setDataset(oDataset_bl);
oVizFrame.setModel(oModel_bl);

var feedPrimaryValues_bl7 = new sap.viz.ui5.controls.common.feeds.FeedItem({
'uid': "primaryValues",
'type': "Measure",
'values': ["Revenue", "Target"]
}),
feedAxisLabels_bl7 = new sap.viz.ui5.controls.common.feeds.FeedItem({
'uid': "axisLabels",
'type': "Dimension",
'values': ["Country"]
});

oVizFrame.addFeed(feedPrimaryValues_bl7);
oVizFrame.addFeed(feedAxisLabels_bl7);
oVizFrame.setVizType('line');

/////////////////////////////////// vizFrame for bubble chart //////////////////////////////////////////////////////////////////////////

var oVizFrameProduct = this.getView().byId("bdoVizFrame");

var oVizFrameProductModel = new sap.ui.model.json.JSONModel({
"businessData": [{
"Sales_Month": "April",
"Marital Status": "Married",
"Customer Gender": "Female",
"Sales_Quarter": "Q1",
"Cost": 190,
"Unit Price": 128.3,
"Gross Profit": 321,
"Sales Revenue": 120
}, {
"Sales_Month": "May",
"Marital Status": "Married",
"Customer Gender": "Female",
"Sales_Quarter": "Q2",
"Cost": 189.9,
"Unit Price": 151.17,
"Gross Profit": 181.59,
"Sales Revenue": 471.49
}, {
"Sales_Month": "June",
"Marital Status": "Married",
"Customer Gender": "Female",
"Sales_Quarter": "Q3",
"Cost": 135,
"Unit Price": 321,
"Gross Profit": 124,
"Sales Revenue": 349
}, {
"Sales_Month": "July",
"Marital Status": "Married",
"Customer Gender": "Female",
"Sales_Quarter": "Q4",
"Cost": 169.4,
"Unit Price": 185.2,
"Gross Profit": 153.8,
"Sales Revenue": 145.9
}, {
"Sales_Month": "Augst",
"Marital Status": "Married",
"Customer Gender": "Male",
"Sales_Quarter": "Q1",
"Cost": 270.2,
"Unit Price": 175,
"Gross Profit": 154.3,
"Sales Revenue": 164.9
}]
});

var oDataset = new sap.viz.ui5.data.FlattenedDataset({
dimensions: [{
name: "Sales_Quarter",
value: "{Sales_Quarter}"
}, {
name: "Customer Gender",
value: "{Customer Gender}"
}, {
name: "Sales_Month",
value: "{Sales_Month}"
}, {
name: "Marital Status",
value: "{Marital Status}"
}],
measures: [{
name: "Cost",
value: "{Cost}"
}, {
name: "Unit Price",
value: "{Unit Price}"
}, {
name: "Gross Profit",
value: "{Gross Profit}"
}, {
name: "Sales Revenue2",
value: "{Sales Revenue}"
}],
data: {
path: "/businessData"
}
});
oVizFrameProduct.setDataset(oDataset);
oVizFrameProduct.setModel(oVizFrameProductModel);

var oFeedPrimaryValues = new sap.viz.ui5.controls.common.feeds.FeedItem({
uid: "primaryValues",
type: "Measure",
values: ["Cost"]
});
var oFeedSecondaryValues = new sap.viz.ui5.controls.common.feeds.FeedItem({
uid: "secondaryValues",
type: "Measure",
values: ["Unit Price"]
});
var oFeedBubbleWidth = new sap.viz.ui5.controls.common.feeds.FeedItem({
uid: "bubbleWidth",
type: "Measure",
values: ["Gross Profit"]
});
var oFeedBubbleHeight = new sap.viz.ui5.controls.common.feeds.FeedItem({
uid: "bubbleHeight",
type: "Measure",
values: ["Sales Revenue"]
});
var oFeedRegionColor = new sap.viz.ui5.controls.common.feeds.FeedItem({
uid: "regionColor",
type: "Dimension",
values: ["Sales_Month", "Sales_Quarter", "Customer Gender"]
});
var oFeedRegionShape = new sap.viz.ui5.controls.common.feeds.FeedItem({
uid: "regionShape",
type: "Dimension",
values: ["Marital Status"]
});

oVizFrameProduct.addFeed(oFeedPrimaryValues);
oVizFrameProduct.addFeed(oFeedSecondaryValues);
oVizFrameProduct.addFeed(oFeedBubbleWidth);
oVizFrameProduct.addFeed(oFeedBubbleHeight);
oVizFrameProduct.addFeed(oFeedRegionColor);
oVizFrameProduct.addFeed(oFeedRegionShape);
oVizFrameProduct.setVizType("bubble");
}
});

});
38 changes: 38 additions & 0 deletions download/View1.view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<mvc:View controllerName="team5.controller.View1" xmlns:c="sap.suite.ui.commons" xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:l="sap.ui.layout" xmlns:mvc="sap.ui.core.mvc" xmlns:viz="sap.viz.ui5.controls" xmlns="sap.m">
<App>
<pages>
<Page title="{i18n>title}">
<content>
<l:Grid class="sapUiSmallMarginTop" defaultSpan="L6 M6 S10" hSpacing="2">
<l:content>
<Image src="http://upload.wikimedia.org/wikipedia/commons/2/25/George_Washington_as_CIC_of_the_Continental_Army_bust.jpg" width="100%">
<layoutData>
<l:GridData linebreakL="true" linebreakM="true" linebreakS="true" span="L3 M3 S8"/>
</layoutData>
</Image>
<VBox>
<Text class="nameTitle" text="asdasd asd asda"/>
<Text text="asdasdasd"/>
</VBox>
</l:content>
</l:Grid>
<Carousel class="sapUiContentPadding" loop="true">
<pages>
<c:ChartContainerContent icon="sap-icon://line-chart" title="Line Chart">
<c:content>
<viz:VizFrame height="700px" id="bdoVizFrame" uiConfig="{applicationSet:'fiori'}" width="100%"></viz:VizFrame>
</c:content>
</c:ChartContainerContent>
<c:ChartContainerContent icon="sap-icon://line-chart" title="Bubble Chart">
<c:content>
<viz:VizFrame height="700px" id="idoVizFrame" uiConfig="{applicationSet:'fiori'}" width="100%"></viz:VizFrame>
</c:content>
</c:ChartContainerContent>
</pages>
</Carousel>
</content>
</Page>
</pages>
</App>
</mvc:View>
45 changes: 25 additions & 20 deletions sap-ui-cachebuster-info.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,20 @@
{
"data.json": "1458108153000",
"view/Congratulations.controller.js": "1458063086000",
"view/Congratulations.view.xml": "1458063086000",
"view/CourseCategories.controller.js": "1458063086000",
"localIndex.html": "1458067298000",
"profilePage.json": "1458063086000",
"categoryList.json": "1458063086000",
"index.html": "1458107888000",
"courseVendorList.json": "1458063086000",
"courselist.json": "1458063086000",
"jobpage.json": "1458063087000",
"Component.js": "1458076585000",
"view/CourseCategories.view.xml": "1458063086000",
"view/CourseDetails.controller.js": "1458063086000",
"view/MyProfile.view.xml": "1458109215000",
"view/Master.view.xml": "1458107888000",
"view/MyProfile.view.xml": "1458111606000",
"view/Master.view.xml": "1458112050000",
"view/Main.view.xml": "1458063086000",
"view/JobPage.controller.js": "1458063086000",
"view/MyProfile.controller.js": "1458107888000",
"view/Master.controller.js": "1458107888000",
"view/MyProfile.controller.js": "1458110167000",
"view/Congratulations.controller.js": "1458063086000",
"view/Congratulations.view.xml": "1458063086000",
"view/Master.controller.js": "1458112056000",
"view/CourseDetails.view.xml": "1458063086000",
"view/CourseCategories.view.xml": "1458063086000",
"view/Main.controller.js": "1458063086000",
"view/CoursePage.controller.js": "1458063086000",
"view/CoursePage.view.xml": "1458063086000",
"view/JobPage.view.xml": "1458063086000",
"util/messages.js": "1458063087000",
"view/CourseCategories.controller.js": "1458063086000",
"img/01.jpg": "1458108794000",
"img/CopyOfhomepagebg.png": "1458073967000",
"img/CopyOfrefugee_book.png": "1458073974000",
Expand All @@ -47,7 +37,22 @@
"img/18.jpg": "1458108794000",
"img/20.jpg": "1458108794000",
"img/19.jpg": "1458108794000",
"css/fullScreenStyles.css": "1458107888000",
"data.json": "1458108153000",
"localIndex.html": "1458067298000",
"css/fullScreenStyles.css": "1458112154000",
"css/jobPageCSS.css": "1458063086000",
"i18n/messageBundle.properties": "1458063086000"
"i18n/messageBundle.properties": "1458063086000",
"profilePage.json": "1458063086000",
"util/messages.js": "1458063087000",
"categoryList.json": "1458063086000",
"index.html": "1458107888000",
"courseVendorList.json": "1458063086000",
"courselist.json": "1458063086000",
"jobpage.json": "1458063087000",
"Component.js": "1458076585000",
"download/View1.controller.js": "1458111839000",
"download/View1.view.xml": "1458111839000",
"view/View1.view.xml": "1458111839000",
"view/View1.controller.js": "1458111839000",
"view/ShellOverlay.fragment.xml": "1458111932000"
}
Loading