Sign in to follow this  
stefanl

Apply scroll from one chart to multiple charts

Recommended Posts

Hi,

 

I have two charts one above another and both of them are scroll stacked column charts. When I do a scroll on one chart I need to set position of scroller of another chart at same position as it at first chart. My question is can I make scroll on one chart and that scroll apply on another charts also and how I can do that if its possible? Im using 3.9 version of FC

Edited by stefanl

Share this post


Link to post
Share on other sites

 

However, you can use scroll bar property for each individual charts.

Hi Ayan, is there any chart property for setting bar position or scroll end?

Edited by stefanl

Share this post


Link to post
Share on other sites

Yes, just few minutes ago I found solution. I have one array with several FC objects and, I'm going with loop through that array and set every chart in array scroll position.
 

this.chartObject.addEventListener('scrollEnd', function (eo, ao) {        scrollPosition = 0.6782364 - in my example
   for (var i = 0; i < self.chartObjects.length; i++) {
          chartObjects.setChartAttribute('scrollToEnd', ao.scrollPosition);
      }
});

Thanks Ayan :)

Edited by stefanl

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this