This is a migrated thread and some comments may be shown as answers.

Zoom in radChartView

0 Answers 190 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 03 Oct 2013, 12:14 PM

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);
  }

No answers yet. Maybe you can help?

Tags
ChartView
Asked by
Roman
Top achievements
Rank 1
Share this question
or