Animation Loops | Observable | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Author
Mike Bostock
@mbostock
Visualization toolmaker. Founder
@observablehq
. Creator
@d3
. Former
@nytgraphics
. Pronounced BOSS-tock.
Comments (2)
Dan S. Reznik
May 7, 2021
I have a question: why aren't the methods "fillText()" and "strokeText()" available from context.* ? Is there a simple way to draw text in the above?
Reply
Adam Thomas
Nov 7, 2021
If you consider the case where 'this' is undefined as if it were the 'enter' group on a selection.join(), using Option 4 here works well for SVGs. It's especially noticeable if you have thousands of elements and a zoom transform.
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
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
Observable
Mike Bostock
112
Reply
Reply
Add comment
Subscribe to notifications
38
Animation Loops | Observable | Observable