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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ZoomFactor???

Thread ID:

Created:

Updated:

Platform:

Replies:

70669 Dec 26,2007 08:22 AM UTC Jan 24,2008 09:06 AM UTC WinForms 3
loading
Tags: Chart
Aung Myo Aye
Asked On December 26, 2007 08:22 AM UTC

Hi

Could anyone explain me how to calculate
ZoomFactorX and ZoomPositionX for XAxis with date time value for real time tick chat?

Regards,
Aung


Sri Subhashini M [Syncfusion]
Replied On December 27, 2007 11:49 AM UTC

Hi Anug,

Thank you for using Syncfusion product.

Programmatically the chart can be zoomed using ZoomFactorX and ZoomFactorY. The Zoom factor is usually between 0 and 1. When set to 1, the chart isn't zoomed. When set to 0.5, the chart is double its usual size. Scrollbars will automatically appear to allow any section of the hidden range to be viewed. The default value is 1. The ZoomPositionX returns the offset position when zoomed along the X axis.

The zooming factor is the value by which intervals are multiplied to have the effect of a more fine grained range. The interval value is calculated based on the ChartDateTimeInterval values of the axes. For example, if the calculated interval is 5 and the zoom factor is 0.5, then the zoomed interval with this zoom factor will be 2.5. Therefore, there will be twice as many interval points across the same range. Scrollbars will automatically appear to allow any section of the zoomed range to be viewed.

Please look into the sample and let me know if its helps:
http://websamples.syncfusion.com/samples/Chart.Windows/70669/main.htm

Kindly refer the documentation for more information about Zooming:

http://www2.syncfusion.com/ug_61/chart/default.html

Regards,
Suba


Aung Myo Aye
Replied On January 17, 2008 09:41 AM UTC

Dear Suba,

Thanks for reply.

But I still can't managed to do that. I have more than 25000 of records as initial and new data will be added into the chart at real time.

The data structure of my database table are as follow:

Price Time
100 2008-01-17 17:32:03.253
200 2008-01-17 17:32:43.253
300 2008-01-17 17:33:43.253

I tried to calculate Zoom factor based on your suggestion for better display.But it doesn't work.

Please take a look at the attachment file.

Regards,
Aung














>Hi Anug,

Thank you for using Syncfusion product.

Programmatically the chart can be zoomed using ZoomFactorX and ZoomFactorY. The Zoom factor is usually between 0 and 1. When set to 1, the chart isn't zoomed. When set to 0.5, the chart is double its usual size. Scrollbars will automatically appear to allow any section of the hidden range to be viewed. The default value is 1. The ZoomPositionX returns the offset position when zoomed along the X axis.

The zooming factor is the value by which intervals are multiplied to have the effect of a more fine grained range. The interval value is calculated based on the ChartDateTimeInterval values of the axes. For example, if the calculated interval is 5 and the zoom factor is 0.5, then the zoomed interval with this zoom factor will be 2.5. Therefore, there will be twice as many interval points across the same range. Scrollbars will automatically appear to allow any section of the zoomed range to be viewed.

Please look into the sample and let me know if its helps:
http://websamples.syncfusion.com/samples/Chart.Windows/70669/main.htm

Kindly refer the documentation for more information about Zooming:

http://www2.syncfusion.com/ug_61/chart/default.html

Regards,
Suba





sample.zip

Melba Winshia [Syncfusion]
Replied On January 24, 2008 09:06 AM UTC

Hi Aung,

I regret for the delayed response.

Could you please modify the below sample with your database table and send us the modified sample to reproduce this issue in our side, so that we could sort out the cause of the issue with that modified sample and provide you a solution?

http://websamples.syncfusion.com/samples/Chart.Windows/70669/main.htm

Thanks,
Melba


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

;