Color - property of the ExtTrend object
Description:
Color of displayed variable.
Note:
Property access
for read and write.
The default value of this property is defined in the "
Color" configurator of this object.
The property returns or sets the
RGB String in the form
"#RRGGBB".
The value entered here serves as initialization value for the trend viewer (for the
PmgTrendViewer object). This value is entered in the property:
tvGraph.Color
Example1:
Examples for obtaining this property in the script.
color setting by
RGB String in the form
"#RRGGBB"
JavaScriptVBScriptSelect and copy to clipboard
sColor = pMe.Pm("/data/#vars/Temperature/#ext/trend").Color;
// or
sColor = pMe.Pm("/data/#vars/Temperature").Extension("trend").Color;
// or
sColor = pMe.Pm("/data").Item("Temperature").Extension("trend").Color;
sColor = pMe.Pm("/data/#vars/Temperature/#ext/trend").Color
' or
sColor = pMe.Pm("/data/#vars/Temperature").Extension("trend").Color
' or
sColor = pMe.Pm("/data").Item("Temperature").Extension("trend").Color
Example2:
The example for obtaining this property by
Macro expression from another data extension via
pVar variable.