Jump to content
Software FX Community

Multiple AxisX and scroll


cbonneton
 Share

Recommended Posts

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 ?

Link to comment
Share on other sites

  • 2 months later...

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;

}

}

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...