ChartDataLowerLimits

ChartDataLowerLimits ( minValue1 ;​ minValue2 ;​ . . . ;​ minValue10000 )

Argument Type Range Default Note
minValue1 num -inf..+inf -inf
minValue2 num -inf..+inf -inf
... num -inf..+inf -inf
minValue10000 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. 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_LOWER_LIMITS_01
1

OpenDrawing(250;​150)

2

/* -1..."missing value" */

3

ChartData(7 16 11 -1 -1 6 4 -1 3)

4

ChartDataLowerLimits(0.0)

5

LineChart(symbol;​on)

6

/* Set up styles. */

7

LineStyle(1;​poly;​1;​#4682b4)

8

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

9

/* Set up axes. */

10

AxisLine(all;​0)

11

AxisMajorTicks(x;​5;​0.25;​#333;​;​out)

12

AxisMajorTicks(y;​0)

13

/* Set up grid. */

14

MajorGridLineWidths(y;​x;​0) /* Hide vertical grid lines. */

15

MajorGridLineWidths(x;​y;​0.25)

16

CloseDrawing()

CHART_DATA_LOWER_LIMITS_01
CHART_DATA_LOWER_LIMITS_02
1

OpenDrawing(250;​150)

2

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

3

ChartData(7 16 11 null null 6 4 null 3)

4

ChartDataLowerLimits(0.0)

5

LineChart(symbol;​on)

6

/* Set up styles. */

7

LineStyle(1;​poly;​1;​#4682b4)

8

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

9

/* Set up axes. */

10

AxisLine(all;​0)

11

AxisMajorTicks(x;​5;​0.25;​#333;​;​out)

12

AxisMajorTicks(y;​0)

13

/* Set up grid. */

14

MajorGridLineWidths(y;​x;​0) /* Hide vertical grid lines. */

15

MajorGridLineWidths(x;​y;​0.25)

16

CloseDrawing()

CHART_DATA_LOWER_LIMITS_02
Scroll to Top