Hi Experts , I'm using viz.frame charts and I'm binding dynamicaly it's according to what I clicked and I want to set the Legend and X-axis , Y-axis name dynamicaly also
I passed into the method 3 parameters Data and X-axis name and Y-axis name
_bindChart: function(Data,Xaxis,Yaxis) { // 1.Get the id of the VizFrame var oVizFrame = this.getView().byId("idoVizFrame"); oVizFrame.destroyDataset(); oVizFrame.removeAllFeeds(); // 2.Create a JSON Model and set the data var oModel = new sap.ui.model.json.JSONModel(); oModel.setData(Data); var oDataset = new sap.viz.ui5.data.FlattenedDataset({ dimensions: [{ name: "Date", value: "{date}" }], measures: [{ name: "Number of Dialog Steps", value: "{Value}" }], data: { path: "/CharData" } }); oVizFrame.setDataset(oDataset); oVizFrame.setModel(oModel); oVizFrame.setVizType("line"); // 4.Set Viz properties oVizFrame.setVizProperties({ title: { text: "Number of steps / Date" }, plotArea: { colorPalette: d3.scale.category20().range() } }); var feedValueAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({ "uid": "valueAxis", "type": "Measure", "values": ["Number of Dialog Steps"] }), feedCategoryAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({ "uid": "categoryAxis", "type": "Dimension", "values": ["Date"] }); oVizFrame.addFeed(feedValueAxis); oVizFrame.addFeed(feedCategoryAxis); // oVizFrame.destroyDataset(); // Data = {}; },
Is there anyone how know how to set these 2 parameteres
I hope I clarified my problem enough
thanks for advance