Data points on Cursor

TeeChart for ActiveX, COM and ASP
Post Reply
hansw
Newbie
Newbie
Posts: 59
Joined: Fri Nov 15, 2002 12:00 am

Data points on Cursor

Post by hansw » Mon Jan 05, 2004 3:03 pm

I need to display the X,Y data at the current cursor position.
Is it possible to do this and have the data follow the cursor.

I did this using, but hate to re-invent the wheel if there is a built in function I would prefer to use it.

double dY = m_Chart1.Series(0).YScreenToValue( m_PointCursorXY.y );
double dX = m_Chart1.Series(0).XScreenToValue( m_PointCursorXY.x );

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Wed Jan 07, 2004 7:31 am

Hi --
I need to display the X,Y data at the current cursor position.
Is it possible to do this and have the data follow the cursor.
How about using the XVal and YVal parameters of the ITChart.OnCursorToolChange() (see Help for details) event?
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply