in

Software FX Community

Discuss and find help for all Software FX products.

Multiple AxisX and scroll

Last post 05-12-2009 11:41 AM by TatianaG. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-03-2009 8:16 AM

    Multiple AxisX and scroll

    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 ?

    Filed under: , , , ,
  • 05-12-2009 11:41 AM In reply to

    Re: Multiple AxisX and scroll

    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;

           }

    }

    Tatiana Gonzalo
    Software FX Support
    Filed under: , ,
Page 1 of 1 (2 items)
Copyright 2008 Software FX, Inc.