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

22 lines
318 B
Markdown

---
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:
```javascript
.style("font-size","25px")
.style("fill","red");
```