Data for the bar trend in the curve display mode. |
Synopsis
setValue (string shape, "data", dyn_float DataX, dyn_float DataY); |
getValue (string shape, "data", dyn_float &DataX, dyn_float &DataY); |
shape.data (dyn_float DataX, dyn_float DataY); |
Parameters
Parameter |
Description |
shape |
Name of the object |
DataX |
X values |
DataY |
Y values |
Description
This attribute specifies the data for the curve whereby the coordinates of the individual points are specified in the dyn_float arrays DataX (x-coordinates) and DataY (y-coordinates). |
Example |
main() |
{ |
shape bt=getShape("BarTrend1"); |
dyn_float dx, dy; |
... |
// Points on the curve |
dx=makeDynFloat(10, 20, 30, 40, 50); |
dy=makeDynFloat(40, 70, 50, 10, 30); |
// Setting the values |
setValue(bt, "data", dx, dy); |
// Linear curve |
bt.connection=BAR_LINEAR; |
// Fill the area |
bt.fill=TRUE; |
// Update bar trend |
bt.flush(); |
... |
} |
Relates to
Bar trend |
See also
V 3.11 SP1
Copyright