../pvss.htm menu.gif basics.gif

"data" - Bar array

Defines the Y values to be displayed.

Synopsis

setValue (string shape, "data", dyn_float yValues);

getValue (string shape, "data", dyn_float &yValues);

shape.data (dyn_float yValues);

Parameters

Description

The Y values of the bars can be set or read as type dyn_float using this attribute.

IconExample

The following example passes new values to the trend and changes the width and starting position of the bars.

main()

{

shape bt=getShape("BarTrend1");

dyn_float df;

...

// Values

df=makeDynFloat(10, 30, 40, 25, 15);

// Width of the bars

bt.xWidth=15;

// Start position

bt.xStart=0;

// Setting the values

setValue(bt, "data", df);

// Update bar trend

bt.flush();

...

}

Relates to

Bar trend

See also

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved