Rang navigator onrangechanged event
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
SIGN IN To post a reply.
3 Replies
SK
Sanjith Kesavan
Syncfusion Team
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.
KS
kalpa serashiya
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
SK
Sanjith Kesavan
Syncfusion Team
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.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
KS kalpa serashiya
- May 25, 2016 06:22 AM UTC
- May 30, 2016 09:09 AM UTC