Hi Sophie,
thanks for the tip, the only problem I have is that I use three measures in a chart and get it working with your example.
Here my dataset:
var dataset = new sap.viz.ui5.data.FlattenedDataset({ dimensions: [ { name: this.bundle.getText("Date"), value: { path: 'Date', type: new sap.ui.model.type.Date({pattern: this.bundle.getText("DateFormat")}) } } ], measures: [ { name: this.bundle.getText("Documents"), value: "{Documents}" }, { name: this.bundle.getText("DocumentsPosted"), value: { path: 'DocumentsPosted' } }, { name: "Rate", value: "{RatePosted}" } ], data: { path: "/Statistic", filters: [ new sap.ui.model.Filter("DateFrom", sap.ui.model.FilterOperator.EQ, dateFrom), new sap.ui.model.Filter("DateTo", sap.ui.model.FilterOperator.EQ, dateTo), new sap.ui.model.Filter("Mode", sap.ui.model.FilterOperator.EQ, mode), new sap.ui.model.Filter("Lifnr", sap.ui.model.FilterOperator.EQ, lifnr), new sap.ui.model.Filter("Bukrs", sap.ui.model.FilterOperator.EQ, bukrs) ] } });
And here my feeds:
var feedCategoryAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({ 'uid': "categoryAxis", 'type': "Dimension", 'values': [this.bundle.getText("Date")] }); var feedValueAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({ 'uid': "valueAxis", 'type': "Measure", 'values': [this.bundle.getText("Documents"), this.bundle.getText("DocumentsPosted"), "Rate"] }); vizFrame.addFeed(feedValueAxis); vizFrame.addFeed(feedCategoryAxis);
From your example I get that adding axis and group properties to the dataset controls the axes showing up, but I still have only one axis when putting two measures in group: 1 and another one in group: 2.
Any idea how to handle that properly?
PS:
There are no examples with two y-axes in the UI5 explored section of the vizframe.