ZoomFactor???
Hi
Could anyone explain me how to calculate
ZoomFactorX and ZoomPositionX for XAxis with date time value for real time tick chat?
Regards,
Aung
Could anyone explain me how to calculate
ZoomFactorX and ZoomPositionX for XAxis with date time value for real time tick chat?
Regards,
Aung
SIGN IN To post a reply.
3 Replies
SS
Sri Subhashini M
Syncfusion Team
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
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
AM
Aung Myo Aye
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
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
MW
Melba Winshia
Syncfusion Team
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
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
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
AM Aung Myo Aye
- Dec 26, 2007 08:22 AM UTC
- Jan 24, 2008 09:06 AM UTC