Home Forums Chart Support Changing colors Reply To: Changing colors



Yes its possible to set color at dataPoint level. In your case, you can set the color at datapoint level while parsing the JSON data. Please find the code-snippet for the same below.

for (var i = 0; i <= data.length - 1; i++) {
	var color = null;
	if (data[i].status != 1)
	  color = "red";

	  label: data[i].region,
	  y: parseInt(data[i].status),
	  color: color

Please check this JSFiddle for working code.
Column Chart with Color

Vishwas R
Team CanvasJS