Hi ,
I was trying out some features of sap.makit.Chart and came across an issue while implementing the filter option. I have created a chart and binded it with an oData service and the display is perfect. Now when I click on a button to generate a new chart based on filter parameter, its not performing the filter operation required, Its still displaying the chart without any filter operation on it.
Here is the code I used to perform the filter operation
var oModelChart=new sap.ui.model.odata.ODataModel("http://<IP>/sap/opu/odata/<SRVC>/",false,"UsrName","pwd");
oChartY.addColumn(new"sale_period", value:"{sale_period}"}));
oChartY.addColumn(new sap.makit.Column({name:"Sale_Type", value:"{Sale_Type}"}));
oChartY.addColumn(new sap.makit.Column({name:"Sale_Amount", value:"{Sale_Amount}", type:"number"}));
oChartY.setModel(oModelChart);
oChartY.bindRows("/GSalesCollection");
var value = 'M'; // this is the filter parameter
var oFilter=new sap.ui.model.Filter("sale_criteria",sap.ui.model.FilterOperator.EQ,value);
oChartY.bindRows("/GSalesCollection",oFilter);
Could you please help me out with this issue, Any pointers would be helpful.
Regards,
Prathik