DHTMLX Docs & Samples Explorer

Index
dhtmlxchart
API Methods

## define (mode, value)

Required library edition:

Required library file: dhtmlxchart.js

Configures a property of chart

- property - the name of mode or property which needs being configured
- value - the value which needs being assigned to mode or property, true by default

        chart.define("sort",{
             by:"#sales#",dir:"asc",as:"int"
         })

To apply the new configuration parameters you need to call refresh() method.