filters dataview by provided parameters
key | string | name of property, or custom filtering method |
value | string | value which will be used for filtering |
//shows all items where Publisher == "Test"
myChart.filter("#Publisher#","Test");
//shows all items where Publisher starts from "Test"
myChart.filter(function(obj,value){
if (obj.Publisher.indexOf(value)==0) return true;
return false;
},"Test");
Back to top