I would like to add a single bar to my chart, but without any value. Unfortunately when I skip adding proper value with label x in coordinates, it (bar with label x) disappears from chart.
\begin{tikzpicture}
\begin{axis}[
width=\textwidth,
ybar,
enlargelimits=0.10,
legend style={at={(0.5,-0.2)},
anchor=north,legend columns=-1},
symbolic x coords={A,B,C},
xtick=data,
nodes near coords,
nodes near coords align={vertical},
x tick label style={rotate=45,anchor=east},
]
\addplot coordinates {(B,5) (C,7)};
\end{axis}
\end{tikzpicture}
In this example bar A (and label A) will not appear on the chart. Anybody knows how to put this x label to chart?
A
, or do you also want a bar at that position? If you do want a bar, what length should that bar have?