Преглед изворни кода

Add pie chart to template file

JoostSijm пре 7 година
родитељ
комит
9309bf8c19
1 измењених фајлова са 22 додато и 1 уклоњено
  1. 22 1
      docs/template_news.tex

+ 22 - 1
docs/template_news.tex

@@ -45,7 +45,7 @@ Een mooie grafiek!
 				font=\footnotesize
 			},
 		]
-		\addplot[black, fill=black] coordinates
+		\addplot[white,fill=white] coordinates
 			{%
 				(600,Ore)
 				(1046,Olie)
@@ -55,3 +55,24 @@ Een mooie grafiek!
 	\end{axis}
 \end{tikzpicture}
 \closearticle{}
+
+\byline{\textbf{\Large Wow een pie-chart}}{Bèrg C.}
+\color{black}
+\begin{tikzpicture}
+	\tikzset{%
+		lines/.style={draw=none},
+	}
+	\pie [text=inside, scale font, explode=0.02, radius=4, color=white]
+		{%
+			25/ DIP,
+			23/ TBL,
+			12/ CB,
+			 9/ DCP,
+			 9/ NVP,
+			 8/ FVD,
+			 3/ NCP,
+			11/ Overig
+		}
+\end{tikzpicture}
+\color{white}
+\captionof{figure}{Verdeling in het parlement}