Parcourir la source

Update table in template

JoostSijm il y a 7 ans
Parent
commit
47fb4cb881
1 fichiers modifiés avec 36 ajouts et 13 suppressions
  1. 36 13
      docs/template_news.tex

+ 36 - 13
docs/template_news.tex

@@ -14,21 +14,44 @@ We houden jullie op de hoogte van de status van deze uitdaging!
 \vfill\null{}
 \columnbreak{}
 
+\byline{\textbf{\Large Grafiek}}{Bèrg C.}
+Een mooie grafiek!
+
 \begin{tikzpicture}
 	\begin{axis}[
-			title style={at={(0.4,0)},anchor=north,yshift=-15pt},
-			title = Overzicht Olie Donaties,
-			xbar,
-			y axis line style = {opacity = 0},
-			axis x line       = none,
-			tickwidth         = 0pt,
-			bar width         = 2ex,
-			y                 = 4.5ex,
-			ytick distance    = 1,
-			symbolic y coords = {Luka, Bèrg C., DSisDS, RDL},
-			nodes near coords={\pgfmathprintnumber\pgfplotspointmeta\ KK BBL},
-			every node near coord/.append style={xshift=5pt,yshift=-10pt,anchor=east,font=\footnotesize},
+		xbar, xmin				= 0,
+		xlabel					= Totaal gedoneerd,
+		y				 		= 4ex,
+		enlarge y limits		= 0.3,
+		tickwidth				= 0pt,
+		axis x line*			= none,
+		axis y line*			= none,
+		ytick					= data,
+		nodes near coords align	= horizontal,
+		nodes near coords 		= \pgfmathprintnumber\pgfplotspointmeta\ KK,
+		xtick					= {500,1000,1500,2000},
+		symbolic y coords		= 
+			{%
+				Doel,
+				Totaal,
+				Olie,
+				Ore,
+			},
+		every node near coord/.append style = 
+			{%
+				xshift=5pt,
+				yshift=-13pt,
+				anchor=east,
+				font=\footnotesize
+			},
 		]
-		\addplot[black!20!black,fill=black!80!black] coordinates{(1048,Luka)(246,Bèrg C.)(70,DSisDS)(20,RDL)};
+		\addplot[black, fill=black] coordinates
+			{%
+				(600,Ore)
+				(1046,Olie)
+				(1646,Totaal)
+				(2000,Doel)
+			};
 	\end{axis}
 \end{tikzpicture}
+\closearticle{}