Page 1 of 1

TrendViewer change Curve-Color?

Posted: Mon Oct 15, 2012 6:02 am
by philip.joebstl
Hello,

is it possible to change the color of a trend curve during runtime?

Also I'm wondering how the TrendViewer object works - I first thought about GDI+, but then I read that it is not supported on the CF-Framework?

Thank you for your support!

Re: TrendViewer change Curve-Color?

Posted: Mon Oct 15, 2012 8:21 am
by mark.monroe
There is no way to change the color of a curve. You can make a curve visible/invisible by setting the IsVisible property of the curve object.

this.TrendViewer1.Curves[0].IsVisible = false;

You could try creating multiple curves that are attached to the same tag and then show/hide the curves depending on what color you want to show.

I do not know how they built the TrendViewer object.