I created a bar graph, but struggle in added in Data Table, Error bar, Grid line.
\documentclass[tikz,border={10pt 20pt 5pt 5pt}]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16} % <---
\begin{document}
\begin{tikzpicture}
\pgfplotstableread{
interval carT carD
1 68 32
2 12.8 3.8
3 15.5 10.4
4 14.0 17.3
5 7.9 21.3
6 68 32
7 68 32
8 68 32
9 68 32
10 68 32
}\mydata
\begin{axis}[
width=\linewidth,
height=.8\linewidth,
ybar=0.5mm, % <--- distance between bars (shift bar)
bar width=4.4mm, % <--- width of bars
legend style={legend columns=-1,
outer sep=1mm, % <---
font=\scriptsize, % <---
anchor=north,
at={(0.5,1)},
},
nodes near coords,
nodes near coords style={font=\scriptsize, inner sep=2pt}, % <---
nodes near coords align={vertical},
ylabel={\%},
xlabel={X-axis},
ymin=0, ymax=100, % <---
xtick=data,
scale only axis, % <---
]
\addplot table[x=interval,y=carT]{\mydata};
\addplot table[x=interval,y=carD]{\mydata};
\legend{Trips, Distance}
\end{axis}
\end{tikzpicture}
\end{document}

Chat Element, and thenError Barand thenPercentage. Each test are total of 100% – aan Aug 27 '19 at 14:09tickandticklabels) produced by provided code. However content of table is not known (seems can be any). On that way i understand this question. – Zarko Aug 27 '19 at 14:18ymajorgrids=true,error bars/y dir=both,error bars/y fixed relative=0.1to theaxisoptions. – Stefan Pinnow Aug 27 '19 at 14:50