BarChart2D
BarChart2D ( appearanceConst ; categoryGap ; seriesGap ; barDepth ; barShape )
| Argument | Type | Range | Default | Note |
|---|---|---|---|---|
| appearanceConst | int | 0..127 | default | |
| categoryGap | num | 0..10000 | 100 | In % of bar width |
| seriesGap | num | -200..10000 | (see desc.) | In % of bar width |
| barDepth | num | 0..1000 | 0 | In % of bar width |
| barShape | int | 1..2 | 1 |
Examples
BarChart2D(stacked;25)
BarChart2D(shadow+proportional;0;0;50)
BarChart2D(shadow+horizontal+label;;-50)
Description
The BarChart2D() function serves to draw bars along the x-axis (time axis). The first data series in ChartData() contains the x values (usually date/time values), the second data series the y values of the 1st chart series, the 3rd and 4th data series the x and y values of the 2nd chart series, etc.
| | BAR_CHART_2D_01 |
| 1 | OpenDrawing(250;150) |
| 2 | ChartData(2025-11-30 2025-12-01 2025-12-04 2025-12-06 2025-12-07 2025-12-08; |
| 3 | 12 17 14 11 3 12) |
| 4 | |
| 5 | /* Set up styles. */ |
| 6 | FillStyle(1;#4682b4) |
| 7 | |
| 8 | /* Set up axes. */ |
| 9 | |
| 10 | AxisMajorTicks(all;0) |
| 11 | AxisMajorTickLabelStyle(x;;;;;;-90) |
| 12 | AxisMajorTickLabelOptions(x;;;3) |
| 13 | /* Set up grid. */ |
| 14 | MajorGridLineWidths(y;x;0) |
| 15 | MajorGridLineWidths(x;y;0.25) |
| 16 |
The BarChart2D() function is set up exactly the same as the BarChart() function.