I want that each bar in my diagram has a color gradient from black to white (from left to the right). However, for the following code, the gradient exists for the entire diagram such that the left bar is black, the middle one is gray, and the right one is white.
\documentclass{report}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ybar]
\addplot[left color=black,right color=white] coordinates {(1,2) (2,3) (3,4)};
\end{axis}
\end{tikzpicture}
\end{document}
\addplot
command, but that might not be feasible depending on how many data points you have.