ChartDataUpperLimits

ChartDataUpperLimits ( maxValue1 ;​ maxValue2 ;​ . . . ;​ maxValue10000 )

Argument Type Range Default Note
maxValue1 num -inf..+inf +inf
maxValue2 num -inf..+inf +inf
... num -inf..+inf +inf
maxValue10000 num -inf..+inf +inf
Description

Both functions, ChartDataUpperLimits() and ChartDataLowerLimits() , make it possible to define an upper and lower limit for each data series, i.e. all values which are less than minValue or greater than maxValue are not shown. The functions can be used to draw incomplete data series: missing data, such as missing readings, is substituted by "invalid" values, i.e. by values which are less than minValue or greater than maxValue. Please note that the ChartDataUpperLimits() and ChartDataLowerLimits() functions should be entered after the ChartData() function. A different and easier method for passing incomplete series of values is to replace the missing values with NULL. Example:

ChartData(12 98.3 null 8 Null NULL 7.23 -0.67)

CHART_DATA_UPPER_LIMITS_01
1

OpenDrawing(250;​150)

2

/* 9999..."missing value" */

3

ChartData(1 2 3 4 5 6 7 8 9;​

4

7 16 11 9999 9999 6 4 9999 3)

5

ChartDataUpperLimits(1000) /* After ChartData() */

6

ScatterChart2D()

7

/* Set up styles. */

8

SymbolStyle(1;​bullet;​5;​1;​#3879aa;​shaded)

9

/* Set up axes. */

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

/* Set up grid. */

13

MajorGridLineWidths(all;​all;​0.25)

14

CloseDrawing()

CHART_DATA_UPPER_LIMITS_01
CHART_DATA_UPPER_LIMITS_02
1

OpenDrawing(250;​150)

2

/* Replace missing values with "null". */

3

ChartData(1 2 3 4 5 6 7 8 9;​

4

7 16 11 null null 6 4 null 3)

5

ChartDataUpperLimits(1000) /* After ChartData() */

6

ScatterChart2D()

7

/* Set up styles. */

8

SymbolStyle(1;​bullet;​5;​1;​#3879aa;​shaded)

9

/* Set up axes. */

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

/* Set up grid. */

13

MajorGridLineWidths(all;​all;​0.25)

14

CloseDrawing()

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

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

×