Skip to Content
0

How can I Change My Dimension & Measures in chart depends on selecting X & Y axis in combo box

Apr 11 at 11:05 AM

19

avatar image

Hii Experts ,

I currently working in Dashboard Charts . My Question is , How i control or change my Dimension & Measures in chart depends on selecting X & Y axis in combo box.

For Example When i select any field in x-axis , the portion of x-axis must be change to what field could i select , this is similar to Y-Axis . I want to change my bar chart x & y axis by using combo box. Please Suggest me Any code Sample or Idea .

Thanks in Advance ,

untitled.png (53.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Srinivas Sistu Apr 12 at 11:34 AM
0

Hi,

what you are trying to do is Filter the values of your graph based on the Value selected in the Drop down?

If so,

1. first get the model associated with the VizFrame and then do a Filter on the data....

something like this...

//Create a Filter

var aFilters = [];

var oFilter = new sap.ui.model.Filter(“<Column for filter>”,“<Operator>”, “<Filter Value>“);

aFilters.push(oFilter);

var oVizFrame = sap.ui.getCore().byId(vizFrameId);

var oBindingData = oVizFrame.getDataset().getBinding("data");

oBindingData.applyFilter();

Hope this helps

Share
10 |10000 characters needed characters left characters exceeded