CursorTool X Value

TeeChart for Javascript for the HTML5 Canvas
Post Reply
amjonas
Newbie
Newbie
Posts: 6
Joined: Mon Aug 26, 2013 12:00 am

CursorTool X Value

Post by amjonas » Fri Jun 27, 2014 11:18 am

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

Yeray
Site Admin
Site Admin
Posts: 8733
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: CursorTool X Value

Post by Yeray » Mon Jun 30, 2014 10:52 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply