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#)
 How to use Marker with TimeCoordinates?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rixmith

33 Posts

Posted - 17 Apr 2011 :  12:14:42  Show Profile  Reply with Quote
I'm using TimeCoordinates on the x-axis of my graph. I would like to draw a vertical line marker on the graph at a given date. How do I get the (x,y) position required by the Marker constructor using the date value?



Rick

quinncurtis

1586 Posts

Posted - 17 Apr 2011 :  12:28:27  Show Profile  Reply with Quote
A ChartCalendar value, expressed in milliseconds, is the proper numeric value to use, in cases where there is not an explicit contructor, or method which accepts ChartCalendar values.

ChartCalendar []x1= new ChartCalendar[nnumpnts];
double []y1 = new double[nnumpnts];
.
.
.
// Place the vertical marker at data point x1[10]
Marker amark = new Marker(pTransform1, ChartObj.MARKER_VLINE, x1[10].GetCalendarMsecs(), 0, 2, ChartObj.PHYS_POS);
chartVu.AddChartObject(amark);

Go to Top of Page

rixmith

33 Posts

Posted - 17 Apr 2011 :  13:24:24  Show Profile  Reply with Quote
Thanks for the speedy response.
Problem solved.

Rick
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