\section{Tahapan Penelitian} \tikzstyle{startstop} = [ellipse, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=white!30] \tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=2cm, text width=2cm, minimum height=1cm, text centered, draw=black, fill=white!30] \tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=white!30] \tikzstyle{decision} = [diamond, minimum width=0.2cm, minimum height=0.2cm, text centered,text width=2cm, draw=black, fill=white!30] \tikzstyle{arrow} = [thick,->,>=stealth] \begin{figure} \begin{center} \singlespacing \scriptsize \begin{tikzpicture}[node distance=1.4cm] \node(start)[startstop]{Mulai}; \node(1)[io,below of=start]{Data}; \node(2)[process,below of=1]{Plot Data}; \node(3)[decision,below of=2,yshift=-1cm]{Apakah Data Berpola Trend?}; \node(4)[process,below of=3,xshift=-4cm,yshift=-1.5cm]{Peramalan dengan metode \textit{Trend Linear}}; \node(5)[process,below of=3,xshift=4cm,yshift=-1.5cm]{Peramalan \textit{Brown Double Exponential Smoothing}}; \node(6)[io,below of=3,yshift=-3.5cm]{Hasil Peramalan}; \node(7)[process,below of=6]{Analisis Perbandingan menggunakan MAPE}; \node(8)[process,below of=7]{Pemilihan Metode Terbaik}; \node(9)[process,below of=8]{Interpretasi Hasil}; \node(selesai)[startstop,below of=9]{selesai}; %%%%%% \draw [arrow] (start) -- (1); \draw [arrow] (1) -- (2); \draw [arrow] (2) -- (3);
\draw [arrow] (3) -| ([xshift=1.75cm] 3.east) |- node[anchor=north,yshift=1.5cm,xshift=-0.5cm]{Tidak} (1) ; \draw [arrow] (3); \draw [arrow] (2) -- (3); \draw [arrow] (3) -| ([xshift=1.75cm] 3.east) |- node[anchor=north,yshift=1.5cm,xshift=-0.5cm]{Tidak} (1) ; \draw [arrow] (3) |-node[anchor=south,xshift=0.4cm,yshift=0.5cm]{Ya}(4); \draw [arrow] (4) |- (6); \draw [arrow] (5) |- (6); \draw [arrow] (3) |- (5); \draw [arrow] (6) -- (7); \draw [arrow] (7) -- (8); \draw [arrow] (8) -- (9); \draw [arrow] (9) -- (selesai); \end{tikzpicture} \caption{Diagram Alir Penelitian}\label{flowchart1} \end{center} \end{figure}