26 Apr 2020: Bar Chart Revisited | Di | Observable
ojs
Author
Di
@didoesdigital
Data Viz Engineer. Author of Practical UI Patterns for Design Systems. Creator of Typey Type for Stenographers.
Comments (2)
Albert Yu
Sep 27, 2020
It's because the `translateX/Y` is not a valid `transform` attribute value; see here:
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform#Translate
If you are used to using CSS-like syntax, you can use `selection.style('transform', ...)` to specify `translateX/Y` individually
Di
Sep 28, 2020
Thanks, Albert! That's a good idea using `.style` to access the CSS syntax.
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
Di
1
Reply
Add comment
Subscribe to notifications
26 Apr 2020: Bar Chart Revisited | Di | Observable
1