color method
Set color converter function. This option should a function and the specified function receives color (e.g. '#ff0000') and d that has data parameters like id, value, index, etc. And it must return a string that represents color (e.g. '#00ff00').
Implementation
external String color(/*Chart this*/ String color, DataItem d);