🏠 back to Observable

rotate the entire chart


Coding beginner here. I have a chart here Radial Stacked Bar Chart (Nightingale mortality chart) / IDCC / Observable
I would like to rotate the whole chart 90 degrees clockwise. May anyone please let me know how I should code for that?


fun Radial Stacked Bar Chart (Nightingale mortality chart) / Tom Larkworthy / Observable

I just put a transform on the root SVG element. You can probably do the reverse transform in all the places you don’t want rotated

EDIT: I added more sliders as I think you might just want a few parts rotated.

1 Like

Wow@@ that’s very helpful! Thanks for doing this huge favor! Now I know one more trick!