Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var lineGraph = new sap.viz.ui5.controls.VizFrame("graphID", {
- vizProperties: {
- title: {
- text: 'Title'
- }
- }
- });
- var panel4 = new sap.m.Panel({
- headerText:"sap.viz.ui5.controls.VizFrame",
- expandable: true,
- expanded: true,
- content:[lineGraph]
- });
- var oVizFrame = sap.ui.getCore().byId("graphID");
- var oDataSet = new sap.viz.ui5.data.FlattenedDataset({
- dimensions: [{
- name: "components",
- value: "{name}"}],
- measures: [{
- name: "Failed Tests",
- value: "{coverage}"}],
- data: {
- path: ""
- }
- });
- oVizFrame.setDataset(oDataSet);
- oVizFrame.setModel(oModel);
- oVizFrame.setVizType('line');
- oVizFrame.setVizProperties({
- plotArea: {
- colorPalette : d3.scale.category20().range()
- }});
- var feedValueAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({
- 'uid': "valueAxis",
- 'type': "Measure",
- 'values': ["products"]
- }),
- feedCategoryAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({
- 'uid': "categoryAxis",
- 'type': "Dimension",
- 'values': ["Failed Tests"]
- });
- oVizFrame.addFeed(feedValueAxis);
- oVizFrame.addFeed(feedCategoryAxis);
Add Comment
Please, Sign In to add comment