Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

Re: How to get different chart

$
0
0

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:

 

 

Controller:

 

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:

 

 

<viz:VizFrame id="idVizFrameStackedColumn" uiConfig="{applicationSet:'fiori'}"

 

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.


Viewing all articles
Browse latest Browse all 8950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>