I am trying to follow this example](https://tex.stackexchange.com/a/157028/122628) to draw a basic bar chart but the lines are getting mixed up. I think it's because major differences between the two columns.
\documentclass[border=0.2cm]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{patterns}
\begin{document}
\pgfplotstableread[row sep=\,col sep=&]{
interval & dynamic & static \
0 & 0 & 0 \
1 & 0 & 0 \
2 & 0 & 0 \
3 & 0 & 0 \
4 & 0 & 0 \
5 & 0 & 0 \
6 & 0 & 0 \
7 & 0 & 0 \
8 & 0 & 0 \
9 & 0 & 0 \
10 & 0 & 0 \
11 & 0 & 0 \
12 & 0 & 0 \
13 & 1 & 0 \
14 & 46 & 6 \
15 & 66 & 9 \
16 & 157 & 18 \
17 & 649 & 79 \
}\mydata
\begin{tikzpicture}
\begin{axis}[
ybar,
legend style={at={(0.5,1)},
anchor=north,legend columns=-1},
symbolic x coords={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}
xtick=data,
nodes near coords,
nodes near coords align={vertical},
ylabel={%},
]
\addplot table[x=interval,y=dynamic]{\mydata};
\addplot table[x=interval,y=static]{\mydata};
\legend{Dynamic,Static}
\end{axis}
\end{tikzpicture}
\end{document}


,in the options and I can not reproduce your output. – hpekristiansen Apr 26 '22 at 08:57