I am trying to assign text color based on attributes for an event_type field. For some reason, it doesn't recognize the colors that are assigned. See anything that I am missing?
var eventColor = $datapoint.event_type
if(eventColor == 'Incident Activation'){
return {textColor:'#ADFF8C'}
} else if(eventColor == 'Discussion-Based Exercise'){
return {textColor:'#FFC379'}
} else if(eventColor == 'Operations-Based Exercise'){
return {textColor:'#71C1FD'}
} else {
return {textColor:'#FD7F7F'}
}
return {
textColor: '',
backgroundColor: '',
separatorColor:'#adadad',
selectionColor: '#fcfc86',
selectionTextColor: '#fcfc86',
// attributes: {
// attribute1: '',
// attribute2: ''
// }
}


@jcarlson
@JenniferAcunto