Promotic

GraphInit - property of the PmgTrendViewer object

Description:
Returns the initializing object of the tvGraph type for drawing the trends process or the trends values.
Syntax:
Object GraphInit
Note:
Property access for read only.
 
This property is also functional in Web panels.
 
By this object the drawing isn't performed, this object serves only for setting the values. On each calling the methods AddTrend, InsertTrend (or on the creation of a new tvTrend object in runtime of the PROMOTIC on the edit pages of the trend viewer), i.e. that on the creation of a new object of the tvTrend type copying all properties of the GraphInit object into the tvTrend.GraphDefault object is performed, which results in the fact that if no other changes of the tvTrend.GraphDefault object properties are made, then all such newly created tvTrend objects are graphical drawn according to setting the objects that were copied from the GraphInit objects.
If the property in the tvTrend.GraphDefault object is changed consequentially, then this change ISN'T backward copied into the GraphInit.
Example:
Sets the Color property of the initializing object of the tvGraph type.
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oGraphInit = oTView.GraphInit;
oGraphInit.Color = "#00ff00";   // color setting by RGB String in the form "#RRGGBB"
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.