DHTMLX Docs & Samples Explorer

define (mode, value)

Required library edition: This method works with any edition of DHTMLX library

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.