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
Author
Mike Bostock
@mbostock
Visualization toolmaker. Founder
@observablehq
. Creator
@d3
. Former
@nytgraphics
. Pronounced BOSS-tock.
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
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
37
Follow
Follow
axis.ticks | D3 | Observable