Zoom in radChartView

1 posts, 0 answers
  1. Roman
    Roman avatar
    10 posts
    Member since:
    Mar 2013

    Posted 03 Oct 2013 Link to this post

    I would want that area of ChartElement was fixed and I was able to move an ChartElement 

    when using the zoom. How I can do it?

    class Zoom
      {
          static double horizontalScale = 1;
          static double verticalScale = 1;
          public static double HorizontalScale
          {
              get
              {
                  return horizontalScale;
              }
              set
              {
                  horizontalScale = Math.Max(1, value);
              }
          }
          public static double VerticalScale
          {
              get
              {
                  return verticalScale;
              }
              set
              {
                  verticalScale = Math.Max(1, value);
              }
          }
      }
     
      private void radChartViewAnalysis_MouseWheel(object sender, System.Windows.Forms.MouseEventArgs e)
      {
          Zoom.HorizontalScale += e.Delta / 3000.0;
          Zoom.VerticalScale += e.Delta / 3000.0;
          radChartViewAnalysis.ChartElement.View.Zoom(Zoom.HorizontalScale, Zoom.VerticalScale);
      }
Back to Top