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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can we assign two data sources to range navigator ?

Thread ID:





132360 Aug 28,2017 02:57 PM UTC Aug 29,2017 03:52 PM UTC JavaScript 1
Tags: ejRangeNavigator
Waqar Haider
Asked On August 28, 2017 02:57 PM UTC

I have a range navigator of Date Time type. 

I want to control/filter 2 charts by this range navigator. How can we do it ?

Can we assign 2 data sources to a range navigator ?

Dharanidharan Dharmasivam [Syncfusion]
Replied On August 29, 2017 03:52 PM UTC

Hi Waqar, 

Thanks for contacting Syncfusion support. 

We have analyzed your query. We have prepared a sample based on your requirement. In this we have created two data source(data.Open & data.Close )and bind these data to range navigator as two series. In case of chart, we have rendered two charts in which we have bind each data source to separate chart. Find the code snippet to achieve this. 


data = GetData(); 
function GetData() { 
      //Created two data source 
      data = { Open: series1, Close: series2 }; 
       return data; 

          series: [{ 
                         dataSource: data.Open, 
          series: [{ 
                              dataSource: data.Close, 
       series: [{ 
                      dataSource: data.Open,  
                     dataSource: data.Close, 
        //Event to change the data in chart when range is selected in range navigator 
         rangeChanged: onchartloaded 
function onchartloaded(sender) { 

If your query is misunderstood at our end, kinldy revert us with more information your query, so that we can provide you the solution sooner. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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