Articles in this section
Category / Section

How to implement InteractiveCursor in a chart?

1 min read

 

First initialize a instance for the ChartInteractiveCursor class and specify the name of the series for which the InteractiveCursor needs be displayed. Finally add that cursor to the chartcontrol.

C#

 ChartInteractiveCursor Icursor = new ChartInteractiveCursor (chartControl1.Series[0]);

this.chartControl1.ChartArea.InteractiveCursors.Add(Icursor);

VB

 Dim Icursor As ChartInteractiveCursor = New ChartInteractiveCursor(ChartControl1.Series(i))

Me.ChartControl1.ChartArea.InteractiveCursors.Add(Icursor)

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied