DHTMLX Docs & Samples Explorer

Index
dhtmlxchart
API Methods

## filter (key, value)

Required library edition:

Required library file: dhtmlxchart.js

Filters dataview by provided parameters

- key - name of property, or custom filtering method
- value - value which will be used for filtering

    //show all items where Publisher == "Test"
        chart.filter("Publisher","Test");
    //show all items where Publisher starts from "Test"
        chart.filter(function(obj,value){
        	if (obj.Publisher.indexOf(value)==0) return true;
        	return false;
        },"Test");