Graphs are coming on click of radio button.
for the changing type of graph other 2 icon buttons are there.
Those are 2 buttons with line graph and column. on click graph type should be changed.
So how could i achieve this?
I tried through JSON. for example:
onClick_LineChart : function(evt)
{
oModel2 = new
sap.ui.model.json.JSONModel({
// JSON for the graph
data : [ { type : 'line' }] });
this.getView().setModel(oModel2, "oModel2");
oVizFrame2 = this.getView().byId( "idVizFrameStackedColumn");
oVizFrame2.setModel(oModel2, "oModel2");
},
View:
vizType="oModel>/data/type" width="100%" height="350px">
</viz:VizFrame>
............................................
I tried in this way. Its not working. is there any other way. tell me I ll try and let you know.