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.

About SfChart custom zooming

Thread ID:

Created:

Updated:

Platform:

Replies:

124381 Jun 6,2016 07:41 AM Jun 7,2016 07:58 AM UWP 1
loading
Tags: SfChart
William Wang
Asked On June 6, 2016 07:41 AM

In what cases will PrimaryAxis_ActualRangeChanged being triggered?
  1. Adding additional items in to data set.
  2. Manually set the zoom factor or zoom position. (Why? Is this should be VisibleRangeChanged? I can't find it)
  3. Resize the window. (Why?)
  4. Any others?

How may ways to change the viewport of the data set (zooming)?
  1. Manually set the zoom factor and zoom position based on user events.
  2. Manually re-set the zoom factor and zoom position inside PrimaryAxis_ActualRangeChanged.
  3. Manually set VisibleMinium and VsisibleMaxium inside PrimaryAxis_ActualRangeChanged.
  4. Any others?
About PrimaryAxis_ActualRangeChanged?
  1. If I set the zoom factor and zoom position based on user events, and why the e.VisibleMinium and e.VisibleMaxium are empty values inside PrimaryAxis_ActualRangeChanged?
  2. If I set the VisibleMinium and VsisibleMaxium inside PrimaryAxis_ActualRangeChanged, why the zoom factor and zoom position values won't changed based on the new visible range. I mean if factor & position won't change to the proper value, for futher zooming calculation based on zoom factor & position are not ganrantee to be TRUE.
  3. If I decided to use the VisibleMinium and VsisibleMaxium to maintain the zooming calculations whitout using factor & position, is there any place to set them outside the PrimaryAxis_ActualRangeChanged?
Thanks,
William


Rachel A [Syncfusion]
Replied On June 7, 2016 07:58 AM

Hi William, 

Thanks for contacting Syncfusion support. 

Query1:When will the ActualRangeChanged event will be triggered? 

The Actual Range Changed event will be triggered whenever there is a change in the range of the axis.  

1.While adding data items if the newly added data item values doesn’t fit in the existing range then the new range will be updated based on the added value.  
2.When you are setting zoom position and zoom factor the range of the axis will be changed, so the event is triggered. Currently we don’t have support for VisibleRangeChanged event. 
3.While we the window is resized ,the range of the axis will be changed based on the available size of the chart. 
4.If you do visual data editing, scrolling, panning, adding new series, sorting ,…etc. (for all the axis range related changes) 

Query2:  How many ways to change the viewport of the data set ? 

1.Zooming changes the view port of the chart area. Zooming can be done by mouse wheeling operation , selection zooming ,pinch zooming or manually setting the zoom factor and zoom position in the chart axis. 

Please refer the following UG link to know more about Zooming behavior. 


2.By enabling the scrollbar in the axis, which will change the view port of the chart area. 



Query3: Regarding ActualRangeChanged event. 

1.ActualRangeChanged event will be triggered before calculating the visible range so the visible minimum and visible maximum values will be null. ActualRangeChanged events allows us to set the visible minimum and visible maximum values based on which the axis visible range will be calculated. 

2.The zoom position and zoom factor will be changed based on the new visible range after the completion of  actual range changed event. 

3.Curretly we don’t have any support to set visible minimum and visible maximum values outside the actualrangechanged event. 

Please provide us the exact scenario of your requirement which would be helpful to provide you a better solution. 

Regards, 
Rachel. A 
 


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.

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.

;