Graphics, Figures & Tablesfunnel diagram with tikz & pgf

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

funnel diagram with tikz & pgf

Post by bernadette »

Hi to all the smart people,

I need a funnel diagram like those on this website: http://texasls.org/archives/5772/funnel ... -template/.
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:

Code: Select all

\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{shadows}
\usetikzlibrary{shapes, shapes.geometric}
\begin{document}
 \begin{tikzpicture}
    \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}}
    \draw[help lines] (0,0) grid (6,7);
    \tikzset{trapezium stretches=true}
    \node [my node=blue!50!cyan, minimum height=1cm, minimum width=5cm] at (3, 6) {A};
    \node [my node=green!60!lime, minimum height=1cm, minimum width=4.45cm] at (3, 5) {B};
    \node [my node=orange!50!red, minimum height=1cm, minimum width=3.9cm] at (3,4) {C};
    \node [my node=red!80!black, minimum height=1cm, minimum width=3.35cm]  at (3,3) {D};
  \end{tikzpicture}
%
\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,

Bernadette
mwe.pdf
(13.23 KiB) Downloaded 306 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply