How to Show Cross hair line


https://www.nevron.com/Forum/Topic13122.aspx
Print Topic | Close Window

By shweta jain - 4 Years Ago
Hello,

I want to show cross hair line with label on mouse move.
for this  I have used Axis cursor like attached image. but How can I show axis position on it.
questions -
 - How can I show axis position on axis cursor line?
- How can I change color of axis cursor line ?
- Is Nevron chart support finger touch interactivity?
- How can I show cursor line on axis according to finger move/tab?
By Nevron Support - 4 Years Ago
Hi Shweta,

- How can I show axis position on axis cursor line?
Currently, this is not supported.

- How can I change color of axis cursor line ?
cursor.StrokeStyle.Color = Color.Red;

- Is Nevron chart support finger touch interactivity?
No, the control does not currently support touch events.

- How can I show cursor line on axis according to finger move/tab?
You need to intercept the touch event and then set the value of the cursor in response to that. You can convert from view to chart coordinates using the following code:

NViewToScale2DTransformation transform = new NViewToScale2DTransformation(chart, (int)StandardAxis.PrimaryX, (int)StandardAxis.PrimaryY);

NVector3DF scaleCoordinates = NVector3DF.Zero;
transform.Transform(pointInViewSpace, ref scaleCoordinates);

We hope this helps - let us know if you have any questions.