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. Image for the cookie policy date
close icon

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

Hi

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



moveGraph_4d3d796e.zip

2 Replies

AD Administrator Syncfusion Team July 10, 2008 07:11 AM UTC

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

Thanks
Dalvir Singh



J. J.Nagarajan Syncfusion Team July 18, 2008 03:00 PM UTC

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.

Regards,
Nagaraj


Loader.
Live Chat Icon For mobile
Up arrow icon