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

Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.1K
Hi Florian,
Thank you for your interest in Nevron Chart for .NET! 

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?
You'll have to remove the cursor from the Cursors collection and refresh the chart. We'll add a Visible property to the axis cursor to make this easier.
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? Is there a command to fix the cursor on the graph?
There is no way currently to fix the cursor to the last data point but you can implement this by dynamically modifying the Value property of the cursor when you add new data to the line series.

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




Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic
3 active, 3 guests, 0 members, 0 anonymous
No members currently viewing this topic!

Login

Explore
Messages
Mentions
Search