Skip to content

Rotate column labels #412

Answered by jrycw
david-waterworth asked this question in Q&A
Discussion options

You must be logged in to vote

@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>'))
    
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by david-waterworth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants