"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

Parameter Description
shape Name of the object
yValues Y values

Description

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

Example

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

main()
{
  shape bt=getShape("BAR_TREND1");
  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();
}
Abbildung 1. Bar Array Trend showing Values from the above Example

Set the color for the bar trend in the trend editor.

Abbildung 2. Change color according to value and tolerance range in the trend editor
Abbildung 3. Bar Trend - Bar Array

Assignment

Bar trend