DHTMLX Docs & Samples Explorer

Index
dhtmlxchart
Events

## onAfterSort

Event name is case insensitive.

This event calls user-defined handlers (if there are any) and passes the following parameters:

- by - a template of sort-by field
- dir - a direction of sorting
- as - a type of sorting

      chart.attachEvent("onAfterSort", function (by, dir, as){
           //any custom logic here
      });