I would like to have the node of each bar being the actual value and its corresponding percentage.
Here is what I have:
\begin{figure}[h]
\centering
\begin{tikzpicture}
\tikzstyle{every node}=[font=\scriptsize]
\begin{axis}[
axis lines*=left,
title=myTitle,
xbar,
xmin=0,
xmax=50,
width=9cm,
height=5cm,
enlarge y limits=0.3,
xlabel={Number of Stuff},
symbolic y coords={A, B, C},
ytick=data,
nodes near coords,
point meta={x*100/44},
nodes near coords={(\pgfmathprintnumber\pgfplotspointmeta\%)},
nodes near coords align={horizontal},
y tick label style={font=\scriptsize,text width=1.2cm,align=center}
]
\addplot coordinates{(42,C) (40,B) (32,A)};
\end{axis}
\end{tikzpicture}
\caption{A test}
\label{hist:auth}
\end{figure}
So I would like to have for example next to the bar for A the following node: 32 (73%).
I have been playing around with nodes near coords={(\pgfmathprintnumber\pgfplotspointmeta\%)} but I wasn't able to figure out.



\tikzstyleis deprecated" – user1527152 Feb 21 '19 at 15:41tikzpictures is fine, of course. Whether or not it is advantageous for this problem to droppgfplotsis another question. Personally would not drop it here. – Feb 22 '19 at 17:56