define

configures a property of chart

void define(string property,string value);

Parameters

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

Example

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

Details

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

Back to top