axis.ticks | D3 | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Comments (3)
daktari
Nov 30, 2020
How can one set the font size for tick labels?
Fil
Nov 30, 2020
Good question! By default the target SVG element (usually a svg:g), will receive attributes: font-size="10" font-family="sans-serif"; these attributes can be overridden, either directly or with CSS; see
https://observablehq.com/@d3/axis-ticks-font
daktari
Nov 30, 2020
Perfect! Thank you.
Reply
Add comment
Subscribe to notifications
Observable
Sign in
D3
Mike Bostock
59
Reply
Add comment
Subscribe to notifications
37
axis.ticks | D3 | Observable