Rotate column labels #412
-
Is it possible to rotate column labels by 90 degrees? I have a large pivot table and both the row and col labels are longish (and the values a single digit counts or "-" (Null) so to make it somewhat more readable I'd like to rotate the column labels? |
Beta Was this translation helpful? Give feedback.
Answered by
jrycw
Sep 17, 2024
Replies: 2 comments 6 replies
-
@david-waterworth , you could try adding some custom CSS like the code below: import polars as pl
from great_tables import GT, html
(
GT(pl.DataFrame({"longish": [1, 2]}))
.cols_label(longish=html('<h3 style="transform: rotate(90deg);">longish</h3>'))
) |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
david-waterworth
-
It seems there are no follow-up issues related to this discussion, so I'll close it for now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@david-waterworth , you could try adding some custom CSS like the code below: