I want to connect the bars of each series of my multiple series bar chart with a line going from node to node.
Thus, all blue bar connected with a blue line and all orange bars with a orange line. However, I don't manage to do this. Is there a way to set the plot type from ybar to line?
The solution in a previous question on this topic does not seem to work as I work with multiple series.
\begin{figure}[!!h]
\centering
\pgfplotstableread{
1 1.64 6.27
2 5.67 -27.13
3 3.58 -9.36
4 6.25 -10.74
}\dataset
\begin{tikzpicture}
\centering
\begin{axis}[ybar,
ymin=-32,
ymax=25,
xmin=0.6,
xmax=4.4,
ylabel={Return in \% },
bar width=20pt,
xtick=data,
enlargelimits=true,
xticklabels ={Pre(0),Pre(1),Crisis(2),Post(3)},
nodes near coords,
major x tick style = {opacity=0},
xticklabel style=
{rotate=45,anchor=near xticklabel},
minor x tick num = 1,
minor tick length=2ex,
]
\addplot[draw=blue,fill=blue!20] table[x index=0,y index=1] \dataset; %Data1
\addplot[draw=orange,fill=orange!40] table[x index=0,y index=2] \dataset; %Data2
\legend{First Day MAR, 36 months BHAR};
\end{axis}
\end{tikzpicture}
\caption{Averages per issue period}
\end{figure}

