color

Defines chart's items colors

Value type: string, function

Color can be set by fixed value:

var chart =  new dhx.ui({
        view:"chart",
        ...
	color:"#66cc33",
        ...
})

You may use string template:

var chart =  new dhx.ui({
        view:"chart",
        ...
	color:"#color#",
        ...
})

Moreover, color can be defined by a function that takes a data object as an argument:

var chart =  new dhx.ui({
        view:"chart",
        ...
	color:function(obj){
	    if (obj.sales > 5) return "#ff9900";
	    else return "#66cc00";
	},
        ...
})