Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 How to use Marker with TimeCoordinates?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
rixmith Posted - 17 Apr 2011 : 12:14:42
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
2   L A T E S T    R E P L I E S    (Newest First)
rixmith Posted - 17 Apr 2011 : 13:24:24
Thanks for the speedy response.
Problem solved.

Rick
quinncurtis Posted - 17 Apr 2011 : 12:28:27
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);


Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07