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.

move line chart ... plz plz help......... :(

Thread ID:





74977 Jul 7,2008 08:26 AM Jul 18,2008 11:00 AM Windows Forms 2
Tags: Chart
Administrator [Syncfusion]
Asked On July 7, 2008 08:26 AM


i m using syncfusion 5.2 for plotting my line charts. i zoomed in and out the chart succesfully. but i want to move the chart with using scroll bar. for eg. when i click on any point at the x-axes. it moves that point to the middle of the graph. the attached pic my clear u more.

plz plz help me ! if it's possible.
or can i get the click event of the the scroll bar?

Thanks & Regards
Dalvir Singh


Administrator [Syncfusion]
Replied On July 10, 2008 03:11 AM

Monohari.h plz tell me atleast is it possible or not.....

Dalvir Singh

J.Nagarajan [Syncfusion]
Replied On July 18, 2008 11:00 AM

Hi Dalvir ,

Sorry for the dealy in getting back to you.

To scroll the chart scrollbar to the MousePosition, you need to handle Scroll event and you can set the e.NewValue in this event. Please refer to the below code snippet.

this.chartControl1.GetHScrollBar(this.chartControl1.PrimaryXAxis).ScrollBar.Scroll += new ScrollEventHandler(ScrollBar_Scroll);
void ScrollBar_Scroll(object sender, ScrollEventArgs e)
//Here you can set the e.NewValue to your Cursor position

Please let me know if this helps.



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.