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

User selection part of chart. Min and Max values of axis X.

Thread ID:

Created:

Updated:

Platform:

Replies:

76996 Oct 6,2008 08:33 AM UTC Oct 11,2008 06:24 AM UTC Windows Forms 1
loading
Tags: Chart
Jacek
Asked On October 6, 2008 08:33 AM UTC

How can I get to know the min max values of axis X when user selects some part of chart area?

I need these values to do zoom. I don`t want use built-in zoom (because some problems).


Manohari [Syncfusion]
Replied On October 11, 2008 06:24 AM UTC

Hi Poland,

Thanks for your interest in Syncfusion Products.

It is possible to get the Min And Max value of the Selected Range by handling the ChartRegionMouseDown, ChartRegionMouseUp and ChartRegionMouseMove events and by using the GetValueByPOint menthod of ChartArea.

Sample Code:

System.Drawing.Point startPoint = new System.Drawing.Point();
System.Drawing.Point endPoint = new System.Drawing.Point();
...
...

ChartPoint start= this.chartControl1.ChartArea.GetValueByPoint(startPoint);
ChartPoint end=this.chartControl1.ChartArea.GetValueByPoint(endPoint);

I have attached a sample that illustrates the same in this link below.

http://websamples.syncfusion.com/samples/Chart.Windows/F76996/Sample1.htm

Kinly let us know if this meets your requirement.

Regards,
Manohari.R


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

;