1

How can I change the arrow orientation (rotate by 180°) of this smart diagram?

\smartdiagramset{set color list={blue!40!white, blue!40!white,blue!40!white, blue!40!white, blue!40!white}}
\smartdiagram[priority descriptive diagram]{text1, text2, text3, text4, text5}
1
  • 1
    Welcome to TeX.SX. I am sure that it is possible and people here will be happy to help. Giving a minimal working example explaining your problem would improve your chance of getting answers.
    – nidhin
    Commented Dec 13, 2018 at 17:34

1 Answer 1

4

I cannot find a better way to do this, other than appending/overwriting parts of the tikz style defined for the arrow inside the priority descriptive diagram styles defined by smartdiagram.

You need to insert \tikzset{priority arrow/.append style={rotate=180,anchor=0,xshift=30,}} somewhere before the \smartdiagram[...]{...} line. This line does a few things.

  1. it rotates 180 degrees (whereas the style defined is rotate=90 degrees)
  2. it anchors the arrow at a different point (anchor=west is default)
  3. it shifts the arrow downward using xshift=30 (you may need to adjust this manually, depending on the size of your diagram)

The MWE with these changes is:

\documentclass{article}
\usepackage{smartdiagram}
\begin{document}

\smartdiagramset{set color list={blue!40!white, blue!40!white,blue!40!white, blue!40!white, blue!40!white}}
\tikzset{priority arrow/.append style={rotate=180,anchor=0,xshift=30,}}
\smartdiagram[priority descriptive diagram]{text1, text2, text3, text4, text5}

\end{document}

Which results in this:

flipped arrow on smartdiagram's priority descriptive diagram

2
  • how does one expand or contract the width of the blue boxes with the text [1-5] in them?
    – 3kstc
    Commented Sep 16, 2019 at 4:23
  • @3kstc I would recommend asking this as a new question. It will get more views that way. In the smartdiagram documentation under priority descriptive diagram implementation I found the keys that you need: \smartdiagramset{module minimum height=2cm, description width=10cm,descriptive items y sep=3}. You would need to merge with anything that you already have in the \smartdiagramset arguments. descriptive items y sep needs to be modified if the height is too large -- otherwise the boxes overlap.
    – whatisit
    Commented Sep 17, 2019 at 15:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .