We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ChartInteractiveCursor

Thread ID:

Created:

Updated:

Platform:

Replies:

60512 May 7,2007 04:00 PM UTC May 9,2007 10:56 AM UTC Windows Forms 1
loading
Tags: Chart
Howard Chen
Asked On May 7, 2007 04:00 PM UTC

Hi,

What is the proper way to use the ChartInteractiveCursor in a realtime chart with a constantly growing data series? I appears that I have to clear the cursor and re-create it with every new data point that is added to the series. When that happens, the cursor automatically moves back to the origin (0,0), which is quite annoying. This is my code:

private void timer1_Tick(object sender, System.EventArgs e)
{
.....
this.chartControl1.ChartArea.InteractiveCursors.Clear();
ChartInteractiveCursor chartCursor1 = new ChartInteractiveCursor(this.chartControl1.Series[0]);
this.chartControl1.ChartArea.InteractiveCursors.Add(chartCursor1);
.....
}

Your help is greatly appreciated. Thanks.

Regards,
Howard

Ramya R [Syncfusion]
Replied On May 9, 2007 10:56 AM UTC

Hi Howard,

My apologies for the delay in responding to you.

1.What is the proper way to use the ChartInteractiveCursor in a realtime chart with a constantly growing data series?

The InteractiveCursor can be used for Charts having series that do not get changed with regard to the timer ticks at the output. They cannot be used with realtime charts because the ChartSeries gets updated for every tick and it is not possible to maintain the position of the InteractiveCursor when the Series gets compressed with the change in number of ChartPoints added to the ChartSeries for every tick.

Please let me know if you have any queries.

Thanks & Regards,
Ramya.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;