2018-10-12 19:37:13 +00:00
|
|
|
---
|
|
|
|
title: Style D3 Labels
|
|
|
|
---
|
|
|
|
## Style D3 Labels
|
|
|
|
|
2018-10-17 16:33:24 +00:00
|
|
|
### Hint 1
|
2018-10-12 19:37:13 +00:00
|
|
|
|
2018-10-17 16:33:24 +00:00
|
|
|
Chain two ` style() ` method together.
|
2018-10-12 19:37:13 +00:00
|
|
|
|
2018-10-17 16:33:24 +00:00
|
|
|
### 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");
|
|
|
|
```
|