Author |
Topic |
|
soundar
51 Posts |
Posted - 04 Feb 2008 : 07:30:15
|
In the ScrollApplication1 example (VB), if I change the line currentTemperature1 = New RTProcessVar("Temp 1", New ChartAttribute(Color.Green, 1.0, DashStyle.Solid, Color.Green))
to color.red, the line color does not change. What is the purpose of this attribute?
|
|
quinncurtis
1586 Posts |
Posted - 04 Feb 2008 : 09:05:36
|
That sets a default color for the RTProcessVar. Usually that color is overridden when you create a scrolling graph, or some other indicator, for the variable. In the case of a scrolling graph, the color of the scrolling line plot is set using the ChartAttribute of the SimpleLinePlot used to create the plot, attrib1 in the example below.
Dim attrib1 As New ChartAttribute(ccColor_, 1, DashStyle.Solid) Dim lineplot1 As New SimpleLinePlot(ccTransform, Nothing, attrib1) |
|
|
|
Topic |
|
|
|