The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:procedure Bar3D (llx, lly, urx, ury: double; Depth: integer; Angle: integer);

The method Bar3D displays 3D bars of any size. The user is required to specify the dimensions of the front rectangle (parameters llx, lly, urx, and ury ) in real-world coordinates. The depth has to be specified in pixel coordinates (0..100), the angle is specified in degrees (0..180). The line width of the 3D bar frame may be adjusted by the property LineWidth. The colors of the 3D bar are determined by the properties DataColor (= frame of bar) and FillColor (= body of bar).


Hint: In the Light Edition the number of chart elements is restricted to 1000 elements.

  This example program shows a sample 3D bar diagram. The height of the bars, their common depth, and their common angle can be changed by using scrollbars.

Example: This method is used in the following example programs (see for downloading the code): percentile, rch3dbar

Last Update: 2017-Sep-01