The Bar and Horizontal bar series "DepthPercent" method controls the size of bars in 3D (Z depth) direction.

Example:
series.setDepthPercent(50) ; // % of 3D depth