\documentclass{standalone}
\usepackage[x11names]{xcolor}
\usepackage{tikz}
\usetikzlibrary{shapes, arrows.meta, positioning}
\begin{document}
\tikzstyle{terminator} = [rectangle, fill=SkyBlue1, text centered, rounded corners, minimum height = 1.5cm, text width = 3cm]
\tikzstyle{process} = [rectangle, fill=SkyBlue1, text centered, minimum height = 1.5cm, text width = 3cm]
\tikzstyle{decision} = [diamond, fill=SkyBlue1, text centered, minimum height = 1.5cm, text width = 3cm]
\tikzstyle{data} = [
trapezium,
fill=SkyBlue1,
text centered,
trapezium left angle=60,
trapezium right angle=120,
minimum height = 1.5cm,
text width = 3cm,
minimum width = 3cm,
inner sep=0pt, % Separation between textbox and shape box horizontal and vertical.
inner xsep=5pt, % horizontal seperation
inner ysep=5pt, % vertical separation
%trapezium stretches=true
]
\tikzstyle{connector} = [draw, -latex]
\begin{tikzpicture}[node distance = 2cm]
\node [terminator] (start) {start};
\node [process, below of=start] (history) {literature};
\node [data, right of=history, node distance = 5cm] (model1) {model 1};
\path [connector] (start) -- (history);
\path [connector] (history) -- (model1);
\node [process, below of=history] (survey) {survey};
\node [data, left of=survey, node distance = 5cm, text width=1.5cm] (surveyData) {\(N=\) 88};
\path [connector] (surveyData) -- (survey);
\path [connector] (history) -- (survey);
\node [process, below of=survey] (stat) {statistics};
\node [data, left of=stat, node distance = 5cm] (PDdata) {another database (\(N=\) 900)};
\path [connector] (PDdata) -- (stat);
\path [connector] (survey) -- (stat);
\end{tikzpicture}
\end{document}
I am having issues making the data nodes uniform. Adjusting the width manually (in the \node
command) doesn't help, I cannot make them even roughly the same width. Not adjusting them manually has also not given good results.
left of
andleft = of
(and why not use the former anymore).\tikzstyle
vs\tikzset
.trapezium
is a weird and in my opinion annoying shape to deal with: 1, 2, 3, 4. Maybe the easiest would be to set minimum width and height as required and ignore text width. Looks likeanother database
it too wide to fit.