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

Rang navigator onrangechanged event

Thread ID:

Created:

Updated:

Platform:

Replies:

124219 May 25,2016 06:22 AM UTC May 30,2016 09:09 AM UTC JavaScript 3
loading
Tags: ejRangeNavigator
kalpa serashiya
Asked On May 25, 2016 06:22 AM UTC

hi,
function onrangechanged(sender) {
var chartobj = $("#container").data("ejChart");
if (chartobj != null) {
chartobj.model.primaryXAxis.zoomPosition = sender.zoomPosition;
chartobj.model.primaryXAxis.zoomFactor = sender.zoomFactor;
}
$("#container").ejChart("redraw");
}
and
$("#rangecontainer").ejRangeNavigator({
//...
labelSettings:
{
higherLevel:
{
intervalType: 'years',
},
lowerLevel:
{
intervalType: ' quarters',
}
},
//...
});
I have 2 following issues
1. for single series data for chart while dragging on range Navigator got error as
JavaScript runtime error: Unable to get property 'Region' of undefined or null reference(image1 attached)
2.get duplicate (reapeted value ) on x-axis (attached image2)

Attachment: RangeNavigatorIssue_images_53580384.rar

Sanjith Kesavan [Syncfusion]
Replied On May 26, 2016 11:30 AM UTC

Hi Kalpa, 

Thanks for contacting Syncfusion support. We have analyzed your queries and please find the response for them below.  

Query1:  for single series data for chart while dragging on range Navigator got error as 
JavaScript runtime error: Unable to get property 'Region' of undefined or null reference (image1 attached) 
We have tried to replicate the issue but the issue is not reproduced at our end. In the below link, we have attached sample for your reference.  
If you still face any concern, kindly let us know by modifying the attached sample along with replication procedure. Or else please provide the sample in which reported issue is reproduced.  
This will be helpful for us to find and fix the issue sooner. 
 
Query2: get duplicate (reapeted value ) on x-axis (attached image2) 
While checking the provided screenshot we found that you have set labelformat as “MMM” for primaryXAxis. If the selected range is changed, then chart is redrawn as per the selected range in the range navigator. In your screenshot, data is selected from end of March 2015 to end of October 2015. In the chart also data is displayed in the same data. Interval is calculated for days but label format is set for months. To avoid this please remove the labelformat set for the axis or else please set the label format as “dd-MMM”.  Please find the below screenshot without setting label format.  
 
Please find the below screenshot after setting label format as “dd-MMM”. 
 
 
 
 
Please let us know if you have any concern. 
 
Regards, 
Sanjith. 
  


kalpa serashiya
Replied On May 27, 2016 05:06 PM UTC

Hi,
still I got same error
Query1 for single series data for chart while dragging on range Navigator got error as 
JavaScript runtime error: Unable to get property 'Region' of undefined or null reference.
I took same code as in your sample  http://www.syncfusion.com/downloads/support/forum/124219/ze/range350954259 (except script files)

[for more than one series data  Range Navigator working fine]

please help ,tell me  possible  solution 

thanks


Sanjith Kesavan [Syncfusion]
Replied On May 30, 2016 09:09 AM UTC

Hi Kalpa,  

Thanks for your reply. We have checked the previously updated sample using the script files prior to 13.4.0.58 and the reported issue is reproduced. But in 13.4.0.58 version of Essential Studio reported issue has been fixed. So please update your Essential Studio to 13.4.0.58 or above version to fix this issue.  

Regards, 
Sanjith. 


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

;