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.

StripLine has annoying behavior

Thread ID:

Created:

Updated:

Platform:

Replies:

40603 Feb 8,2006 01:10 AM Feb 13,2006 02:09 AM Windows Forms 4
loading
Tags: Chart
Timo Günther
Asked On February 8, 2006 01:10 AM

Hi there, first of all I have a question. Is there a cursor available which can follow the mouse automatically? If so, how can I implement it? At the moment I am using the StripLine to generate a cursor on the chart. If the charts shows a X Axis section from 10 to 20 and i set stripLine.start = 5; stripLine.end = 6; stripLine.width = 1; I will see the stripline outside of my chart! This behavior is same all of the time, no matter if one was zooming on the chart or not. Is there a way to avoid such a behavior? Timo

Geetha M [Syncfusion]
Replied On February 8, 2006 07:19 AM

Hi Timo, Yes. Essential Chart supports InteractiveCursors - the cursor that follows the mouse automatically. Please refer the sample under [Installed Drive]:\Program Files\Syncfusion\Essential Studio\version number\windows\Chart.Windows\Samples\User Interaction\ChartInteractiveCursor Note: This feature has been included only from Essential Chart version 3.3.0.0 onwards. To set the stripline within the chart region use the following code snippet: private ChartStripLine optimalZone = new ChartStripLine(); if((this.optimalZone.Start >= this.chartControl1.PrimaryXAxis.VisibleRange.Min )&& (this.optimalZone.End <= this.chartControl1.PrimaryXAxis.VisibleRange.Max)) this.optimalZone.Enabled = true; else this.optimalZone.Enabled = false; Note: In case of zooming this coding should be included within the VisibleRangeChanged event of the chartControl. There is a KB article on this available at the following link: KB Link I hope this helps you. Thanks and Regards, Geetha

Timo Günther
Replied On February 9, 2006 02:24 AM

Hi, thanks for your quick reply. Your solution didnt match exactly my needs but maybe I can implement something with your little hint. Maybe you can have a look onto my example. the hScrollBar is moving the StripLine which is used as a cursor. If you scroll into the negativ X-Axis you can see the cursor out of the bounds of the chart. Also I dont want to switch off the cursor while zooming. If the cursor if outside the zoomed area it must be shown when it enters the zoomed area. Thanks in advance Timo

SF_Chart.zip

Geetha M [Syncfusion]
Replied On February 9, 2006 10:06 AM

Hi Timo, Thanks for the sample. I made some modifications in the sample to set the cursor within the bounds of Chart. Please find attached the modified code and the explanation and do let me know if it helps you. changes.zip Regards, Geetha.

Timo Günther
Replied On February 13, 2006 02:09 AM

Hi, thanks a lot, that helped (I did a few more modifications also :-)). Greetings, Timo

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.

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.

;