I am trying to iterate over an array and based of the value in y: I want to color a point in my chart.
this is what the code i want to use looks like, so index 0 would be {x:1,y:1} (which is why this isnt working now, im guessing). I want to isolate y:1 then color with value === 1
$.each(coords, function( index,value ) {
if(value === 1){
myColors2[index]="#A39FBB";