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
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(2024-11-30 2024-12-01 2024-12-04 2024-12-06 2024-12-07 2024-12-08;​

3

12 17 14 11 3 12)

4

BarChart2D()

5

/* Set up styles. */

6

FillStyle(1;​#4682b4)

7

BorderStyle(all;​none)

8

/* Set up axes. */

9

AxisLine(all;​0)

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

CloseDrawing()

BAR_CHART_2D_01

The BarChart2D() function is set up exactly the same as the BarChart() function.

Scroll to Top