StatusBubbleMatrix.js
////// A helper function that returns a color for each color variable.
A helper function that returns a color for each color variable.
A helper function that returns a color for each color variable .
function returnColor(RD_YT_or_GC){
  if(RD_YT_or_GC === "RD"){
    return "#e31c3d"}
  else if(RD_YT_or_GC === "YT"){
    return "#fdb81e"}
  else if(RD_YT_or_GC === "GC"){
    return "#2e8540"}
  else{
    console.log("no color match in function returnColor", RD_YT_or_GC);
    return "#e5e5e5"
  }
}
function returnColor ( RD_YT_or_GC ) { if ( RD_YT_or_GC === "RD" ) { return "#e31c3d" } else if ( RD_YT_or_GC === "YT" ) { return "#fdb81e" } else if ( RD_YT_or_GC === "GC" ) { return "#2e8540" } else { console . log ( "no color match in function returnColor" , RD_YT_or_GC ) ; return "#e5e5e5" } }
A helper function that returns a color for each color variable.
A helper function that returns a color for each color variable .
// console.log("in RD ",RD_YT_or_GC) // console.log("in YT ",RD_YT_or_GC) // console.log("in GC ",RD_YT_or_GC) // return "#4cc922"} // return "#eff0ff" // return "white"