axis cursor / data cursor


Author
Message
Florian Heck
Florian Heck
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 1, Visits: 36
Hi Team,
I am using the Data Cursor in my chart and it is working well. But I also got some issues with it:
1) First I want to activate/deactivate the data cursor with a checkbox. Activating is nor problem, but when I want to deactivate the cursor the lines stay in the chart (picture below)
So is there any way to remove these lines?

2) The second thing is: The data cursor should follow the graph in the chart. At the moment you can move it free
Is there a command to fix the cursor on the graph?

Thanks for helping!
Best regards!

Code:

If CheckBox2.Checked = True Then

    axisCursorY.BeginEndAxis = CType(StandardAxis.PrimaryY, Integer)
    chart.Axis(StandardAxis.PrimaryX).Cursors.Add(axisCursorY)

    axisCursorY.Value = 0

    NChartControl1.Controller.Selection.SelectedObjects.Add(chart)
    NChartControl1.Controller.Tools.Add(New NDataCursorTool())


    axisCursorY.SynchronizeOnMouseAction = MouseAction.Move


    axisCursorX.BeginEndAxis = CType(StandardAxis.PrimaryX, Integer)
    chart.Axis(StandardAxis.PrimaryY).Cursors.Add(axisCursorX)

    axisCursorX.Value = 0

    NChartControl1.Controller.Selection.SelectedObjects.Add(chart)
    NChartControl1.Controller.Tools.Add(DataCursor1)


    axisCursorX.SynchronizeOnMouseAction = MouseAction.Move

Else

    NChartControl1.Controller.Tools.Clear()

End If

https://www.nevron.com/forum/uploads/images/10146478-e51e-4f20-9e11-bc5c.png

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search