I need to make nodes with negative coodinates be anchor=east. How can I do that when I have nodes near coords style = {anchor = west,..} before \addplot? Should I create an individual \addplot for each bar and specify anchoring? and if so, what would be the correct syntax?
\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xbar,
axis lines* = middle,
ymajorticks = false,
every inner y axis line/.append style = {dotted, very thick},
nodes near coords,
nodes near coords style = {anchor = west,font = \itshape},
point meta = explicit symbolic,
xtick = {},
xlabel = {label text}
]
\addplot [fill=black!50] coordinates {
(-1.09,9)[text1]
(-0.81,8)[text2]
(0.42,7)[text3]
(0.76,6)[text4]
(0.80,5)[text5]
(0.85,4)[text6]
(0.90,3)[text7]
(1.08,2)[text8]
(2.16,1)[text9]
};
\end{axis},
\end{tikzpicture}
\end{document}
Thanks in advance for the help!
