committed by
Aditya
parent
a01cc367e0
commit
68697c0009
@@ -3,8 +3,19 @@ title: Style D3 Labels
|
||||
---
|
||||
## Style D3 Labels
|
||||
|
||||
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/data-visualization/data-visualization-with-d3/style-d3-labels/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
|
||||
### Hint 1
|
||||
|
||||
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
|
||||
Chain two ` style() ` method together.
|
||||
|
||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
||||
### 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");
|
||||
```
|
||||
|
Reference in New Issue
Block a user