replaced data array of array with array of objects to set colors individually