Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
UltraChart: Horisontal scroll by mouse wheel
posted

 I woud like to scroll UltraChart horizontally by mouse wheel with Shift key pressed. How can I do that?

  • 26458
    Offline posted

    The functionality is built into the 3d charts, but if you're using a 2d chart you will have to implement this.

    First, make sure the scrollbars are enabled:
    ultraChart1.Axis.X.ScrollScale.Visible = true;
    ultraChart1.Axis.Y.ScrollScale.Visible = true;

    Then, handle the mouse wheel event on the control and set Scroll and Scale properties inside ultraChart1.Axis.X.ScrollScale and ultraChart1.Axis.Y.ScrollScale.