You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is an iOS bug or an Observable Framework bug, so I'll just put it as a Q&A. I'd been testing my work on Windows and Android, since those are what I use, and everything was fine, but I just looked on an iOS device, and using .attr("transform", "rotate(90,0,0)") on the outer SVG component of a d3.create("svg") turned out to be having no effect in either Safari or Chrome. I wrapped everything in the SVG in an outer <g> and put the rotate on that, and it worked (although I had to change the translate substantially from what it had been). Is this a known issue with modern browsers, or is it me not understanding how the SVG component works?
Here's the code; the commented out bits are the bits of my original code that I changed/replaced, and the second constant is the new addition to fix the problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I don't know if this is an iOS bug or an Observable Framework bug, so I'll just put it as a Q&A. I'd been testing my work on Windows and Android, since those are what I use, and everything was fine, but I just looked on an iOS device, and using
.attr("transform", "rotate(90,0,0)")
on the outer SVG component of ad3.create("svg")
turned out to be having no effect in either Safari or Chrome. I wrapped everything in the SVG in an outer<g>
and put the rotate on that, and it worked (although I had to change the translate substantially from what it had been). Is this a known issue with modern browsers, or is it me not understanding how the SVG component works?Here's the code; the commented out bits are the bits of my original code that I changed/replaced, and the second constant is the new addition to fix the problem.
Beta Was this translation helpful? Give feedback.
All reactions