Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 560 Bytes

File metadata and controls

9 lines (8 loc) · 560 Bytes

Style D3 Labels

link solution
D3 methods can add styles to the bar labels. The fill attribute sets the color of the text for a text node. The style() method sets CSS rules for other styles, such as font-family or font-size. Set the font-size of the text elements to 25px, and the color of the text to red.

Tests

Waiting: The labels should all have a fill color of red. Waiting: The labels should all have a font-size of 25 pixels.