ErrorBarStyle

Modified in version 4.0

ErrorBarStyle ( seriesIndex ;​ axisIndex ;​ showCapsOnly ;​ capLength ;​ barStroke ;​ barColor ;​ barColorVariant )

Argument Type Range Default Note
seriesIndex int 0..10000 all
axisIndex int 0..3 all
showCapsOnly int 0..1 off
capLength num 0..100 5 Dimension:[pt]
barStroke num[] 0..1000 1 Dimension:[pt]
barColor rgba 0..255 black
barColorVariant int -1..128 solid
Examples

ErrorBarStyle(all;​all;​;​0) /* No caps. */

ErrorBarStyle(2;​y;​on;​2;​2)

Description

The appearance of the error bars can be controlled by using the ErrorBarStyle() function. The 1st argument seriesIndex defines which data series the function refers to. The 2nd argument axisIndex defines which error bar direction the function refers to. By activating the argument showCapsOnly = on, the connecting lines between the error markers can be suppressed. The length of the error markers (in pixels) can be controlled by using the argument capLength. The bar stroke and color can be varied using the arguments barStroke, barColor and barColorVariant. Unless otherwise defined, error bars are black and one-pixel wide.

ERROR_BAR_STYLE_01
1

OpenDrawing(250;​150)

2

ChartData(7 11 12 20 26 25)

3

BarChart()

4

ErrorBars(1;​all;​plus;​constant;​;​;​2)

5

ErrorBarStyle(all;​;​on;​13;​1.0;​#c002a0)

6

/* Set up styles. */

7

FillStyle(1;​#4682b4)

8

BorderStyle(1;​none)

9

/* Set up axes. */

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

/* Set up grid. */

13

MajorGridLineWidths(x;​y;​0.25)

14

MajorGridLineWidths(y;​x;​0)

15

CloseDrawing()

ERROR_BAR_STYLE_01
ERROR_BAR_STYLE_02
1

OpenDrawing(250;​150)

2

ChartData( 7 13 20 24 26 22;​ /* 1st series. */

3

24 21 13 11 10 8) /* 2nd series. */

4

ScatterChart(;​on)

5

ErrorBars(1;​y;​both;​stdError)

6

ErrorBars(2;​y;​both;​percent;​;​;​20;​20)

7

ErrorBarStyle(1;​y;​on ;​6;​1;​#4682b4)

8

ErrorBarStyle(2;​y;​off;​0;​1;​#c002a0)

9

/* Set up styles. */

10

SymbolStyle(1;​circle;​4;​1;​#4682b4;​;​white)

11

SymbolStyle(2;​circle;​4;​1;​#c002a0;​;​white)

12

/* Set up axes. */

13

Scaling(y;​linear;​0;​30)

14

AxisLine(all;​0)

15

AxisMajorTicks(all;​0)

16

/* Set up grid. */

17

MajorGridLineWidths(x;​y;​0.25)

18

MajorGridLineWidths(y;​x;​0)

19

CloseDrawing()

ERROR_BAR_STYLE_02
Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×