Color - property of the tvGraph object
Description:
Color of the graph line.
Note:
Property access
for read and write.
This property is also functional in
Web panels.
The property returns or sets the
RGB String in the form
"#RRGGBB".
When the object is created, the value of this property is copied from the
PmgTrendViewer.GraphInit object.
If the
tvTrend object is connected to the trend server (e.g. by means of calling the
Connect method), then it can be set the property to the value of
"$default". In this case the value of the property is read from the
PmaTrendGroup object from the "
Color" configurator.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oTView = pMe.Items("../TrendView");
var oGraphDef = oTView.Trends("t1").GraphDefault;
oGraphDef.Color = "#00ff00";
// Writing into the property
oTView.Draw();
Dim oTView
Set oTView = pMe.Items("../TrendView")
Dim oGraphDef
Set oGraphDef = oTView.Trends("t1").GraphDefault
oGraphDef.Color = "#00ff00"
' Writing into the property
oTView.Draw