cbonneton Posted March 3, 2009 Report Share Posted March 3, 2009 I have two X axis : 1st shows hours and 2nd shows the days. When I zoom the graph, the two scroll bars are correctly set. When I scroll one scrollBar, the other doesn't reflect the new scrollposition. Is ChartFX able to do that with some axis configuration, or must I use the UserScroll event ? Quote Link to comment Share on other sites More sharing options...
TatianaG Posted May 12, 2009 Report Share Posted May 12, 2009 I am afraid it isn't any property that can simultaneously scroll both scrollbars. If you need to handle this, you can use the following event code: protected void chart1_UserScroll(object sender, AxisEventArgs e) { if (e.Axis.ToString() == "Main X Axis") { chart1.AxesX[1].ScrollPosition = chart1.AxesX[0].ScrollPosition; } else { chart1.AxesX[0].ScrollPosition = chart1.AxesX[1].ScrollPosition; } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.