Page 1 of 1
How to place CursorTool in a speifeid X Axis date.
Posted: Fri Dec 19, 2008 11:48 am
by 14049736
Hello,
I am using Tchart Wpf.
I am plotting values against datetime.
I want to place a CursorTool in a specified X axis value (Datetime).
I tried something like.
cursorTool.XValue = DateTime.Now.ToOADate(); .
But it is not working.
Pls reply.
Thanks,
Vijay
Posted: Fri Dec 19, 2008 11:55 am
by narcis
Hi Vijay,
You should do:
Code: Select all
cursorTool.XValue = DateTime.Now.ToOADate();
cursorTool.YValue = YVal;
cursorTool.XValue = DateTime.Now.ToOADate();
As I explained on
this thread.
Posted: Fri Dec 19, 2008 12:49 pm
by 14049736
Thank you Narcis,
It works fine.
I have one more query related with series Marks.
Some times i may have more than 100000 points the screen. In that situation if i enable series markers then T Chart will not respond.
Is it possible to control the visibility of values marks depending on the points in the chart??
Posted: Fri Dec 19, 2008 1:51 pm
by narcis
Hi vijay,
You can use DrawEvery:
You can set its value according to the number of points in the chart. You can also set Marks.Visible=false if line1.Count exceeds a certain value.
Posted: Mon Dec 22, 2008 4:16 am
by 14049736
Thanks Narcis