Page 1 of 1

CursorTool X Value

Posted: Fri Jun 27, 2014 11:18 am
by 15966868
Is there a way to set the X value of a CursorTool to default to a certain value?

I have a time series chart based on Date/Time on the bottom axis. When you add a Cursor, it's X position is in the middle of the graph - I'm hoping I can get it to be at the current Date/Time.

Code I am using is fairly basic:

var cursor=new Tee.CursorTool(Chart1);
cursor.direction="vertical";
cursor.vertAxis=null;
cursor.render="full";
Chart1.tools.add(cursor);


Kind regards
Mark

Re: CursorTool X Value

Posted: Mon Jun 30, 2014 10:52 am
by yeray
Hello Mark,

I've added this to the public tracker, including a fix suggestion, pending to be validated:
http://bugs.teechart.net/show_bug.cgi?id=821

Thanks for reporting it.