Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Change color of RTSimpleSingleValuePlot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

quinncurtis

1586 Posts

Posted - 21 Mar 2013 :  12:02:13  Show Profile  Reply with Quote
Ive been using the toolkit and adding some great charts to our app.

I would like to be able to change the line color of an existing RTSimpleSingleValuePlot that is already displaying in a real-time chart. I have tried using the SetColor() API, but the line color doesnt change. Any suggestions?

quinncurtis

1586 Posts

Posted - 21 Mar 2013 :  12:03:14  Show Profile  Reply with Quote
You must be calling SetColor on the wrong object. You need to call it on the SimpleLinePlot object the RTSimpleSingleValuePlot is based on,


            SimpleLinePlot lineplot2 = new SimpleLinePlot(pTransform2, null, attrib2);
            lineplot2.SetFastClipMode(ChartObj.FASTCLIP_X);
            rtPlot2 = new RTSimpleSingleValuePlot(pTransform2, lineplot2, NASDAQChannel);
            chartVu.AddChartObject(rtPlot2);

	
	// Change the line color
	lineplot2.SetColor(Color.Yellow);

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07