freeCodeCamp/guide/english/certifications/data-visualization/data-visualization-with-d3/style-d3-labels/index.md

318 B

title
Style D3 Labels

Style D3 Labels

Hint 1

Chain two style() method together.

Hint 2

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

Solution

Add these lines to the end of the chain:

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