CSCI-4830-002-2014 / challenge-week-8

0 stars 14 forks source link

help with getting C or H in Challenge 3.a #25

Closed nikitavoskoboynik closed 10 years ago

nikitavoskoboynik commented 10 years ago

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"; } })