Skip to content

How To rotate dataLabel in angle 45 degree ? #3882

Answered by jiaulislam
jiaulislam asked this question in Q&A
Discussion options

You must be logged in to vote

@INFIASHUTOSH use the angle property to rotate the label.

<XAxis
          dataKey={"label"}
          angle={-30}
          textAnchor="end"
          height={70}
          tick={{
            stroke: TICK_COLOR,
            strokeOpacity: 0.1,
            fontSize: LABEL_TICK_FONT_SIZE,
          }}
        />

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jiaulislam
Comment options

Answer selected by jiaulislam
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