I can't seem to get the right comparison operator for this part.
From what i can see d.name is the only way to tell if a repo if a week challenge or hackathon.
would appreciate any help.
thanks.
.text(function(d) {
var str = d.name;
if (str.charAt(0) == "C"){
return "C";
}else{
return "H";
}
})
I can't seem to get the right comparison operator for this part. From what i can see d.name is the only way to tell if a repo if a week challenge or hackathon. would appreciate any help. thanks.
.text(function(d) { var str = d.name; if (str.charAt(0) == "C"){ return "C"; }else{ return "H"; } })