freeCodeCamp Challenge Guide: Style D3 Labels

Style D3 Labels


Hints

Hint 1

Chain two style() method together.

Hint 2

Use font-family in the first method and fill in the second method.


Solutions

Solution 1 (Click to Show/Hide)

Add these lines to the end of the chain:

  .style("font-size","25px")
  .style("fill","red");
2 Likes