\documentclass{article}

\usepackage{pgfplots}

\begin{document}

\begin{tikzpicture}
\begin{axis}[
  ybar interval,
	hist/symbolic coords={A,B,C,D,E,F,G,H,I,J},
	%--------------------------------------------------
	% symbolic coords={hist/data}{A,B,C,D,E,F,G,H,I,J},
	% symbolic x coords={A,B,C,D,E,F,G,H,I,J},
	%-------------------------------------------------- 
  xticklabel={[\tick--\nexttick[},
]
    \addplot+[hist={bins=3}]
        table[row sep=\\,y index=0] {
        data\\
		A\\ B\\ A\\ D\\ F\\ J\\
		G\\ J\\ I\\ H\\ I\\ I\\
    };
\end{axis}
\end{tikzpicture}

\end{document}

