I am plotting a 3d diagram using cubes to represent the data. Works fine so far. Basically, this is what I started with: http://pgfplots.net/tikz/examples/scatter-cube-plot/
Now what I want to do, is not to use cubes, but bars instead. So I kinda want to stretch the cube along the z axis from 0 to its z-coordinate to create the bar look and I have no clue how to do this. Didnt find anything useful online.
This is what I want to achive:

On page 81 of the pgfplots manual is says, that for each cube, the coordinates can be set using:
/pgfplots/cube/size x={dimension}
/pgfplots/cube/size y={dimension}
/pgfplots/cube/size z={dimension}
but I dont know how to use that information.