I'm writing a tic-tac-toe game. When winning, I use the label as a line, but please tell me how to make the label at an angle?

In this case I need a diagonal line

I was looking for a solution to this problem, but I didn't find it.
I'm writing a tic-tac-toe game. When winning, I use the label as a line, but please tell me how to make the label at an angle?

In this case I need a diagonal line

I was looking for a solution to this problem, but I didn't find it.