LaTeX forum ⇒ Graphics, Figures & Tablesfunnel diagram with tikz & pgf

Information and discussion about graphics, figures & tables in LaTeX documents.
Posts: 1
Joined: Sun Nov 18, 2018 4:41 pm

funnel diagram with tikz & pgf

Postby bernadette » Sun Nov 18, 2018 4:59 pm

Hi to all the smart people,

I need a funnel diagram like those on this website:
There does not seem to be anything like it in the tikz gallery, so I've been trying to fiddle with tikz pic, pgf shapes etc... the best I've been able to come up with is:
  1. \documentclass[border=5mm]{standalone}
  2. \usepackage{tikz}
  3. \usetikzlibrary{shadows}
  4. \usetikzlibrary{shapes, shapes.geometric}
  5. \begin{document}
  6. \begin{tikzpicture}
  7. \tikzset{my node/.style={trapezium, trapezium stretches body, shape border rotate=180, bottom color=#1!90, top color=#1!10, draw=black!80, text=black, drop shadow}}
  8. \draw[help lines] (0,0) grid (6,7);
  9. \tikzset{trapezium stretches=true}
  10. \node [my node=blue!50!cyan, minimum height=1cm, minimum width=5cm] at (3, 6) {A};
  11. \node [my node=green!60!lime, minimum height=1cm, minimum width=4.45cm] at (3, 5) {B};
  12. \node [my node=orange!50!red, minimum height=1cm, minimum width=3.9cm] at (3,4) {C};
  13. \node [my node=red!80!black, minimum height=1cm, minimum width=3.35cm] at (3,3) {D};
  14. \end{tikzpicture}
  15. %
  16. \end{document}

I have no idea how I could make the horizontal lines of the trapeziums curve downwards, looking at the code in pgflibraryshapes.code.tex did not help me.
Because I want to use the diagram for presentations, I want to make it animated in the end.
And I need to be able to add text and variable numbers of layers, so I think I need to stick with using nodes.
Could anybody point a complete tikz noob into the right direction? Any help would be greatly appreciated!

All the best,

(13.23 KiB) Downloaded 32 times

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 11 guests