I want to have label each bar of a horizontal bar chart with its corresponding y value. However, I am only able to get the numeric representation but not the actual symbolic value.
\documentclass[border=5mm]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xbar,
axis y line=center,
axis x line=center,
bar width=4pt,
bar shift=0pt, %% <-- added
y=4pt,
visualization depends on={y \as \rawy},
nodes near coords={\rawy},, nodes near coords align={horizontal}, nodes near coords style={font=\tiny},
symbolic y coords={A,B,C,D,E,F},
yticklabels=\empty,
]
\addplot[fill=blue] coordinates { (-58,A) (-45,B) (-43,C) };
\addplot[fill=red] coordinates {
(19,D)
(35,E)
(65,F)
};
\end{axis}
\end{tikzpicture}
\end{document}
This is the result with the presumably internal representations for the different y ticks used as the labels instead of the intended symbolic values.

