summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-07-29 12:58:03 -0700
committerJacob Palecki <[email protected]>2020-07-29 12:58:03 -0700
commite48f9ba06680e9447eb82e44d38eacc664850ac5 (patch)
tree4dc4a9bd1d0774c88b2f03767255aa22c6b3925a
parentUse modifier object in wrapper (diff)
downloadrawaccel-e48f9ba06680e9447eb82e44d38eacc664850ac5.tar.xz
rawaccel-e48f9ba06680e9447eb82e44d38eacc664850ac5.zip
Allow zooming on graph
-rw-r--r--grapher/Form1.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/grapher/Form1.cs b/grapher/Form1.cs
index 495640e..3e627fe 100644
--- a/grapher/Form1.cs
+++ b/grapher/Form1.cs
@@ -44,6 +44,23 @@ namespace grapher
}
this.AccelerationChart.ChartAreas[0].AxisX.RoundAxisValues();
+
+ this.AccelerationChart.ChartAreas[0].AxisX.ScaleView.Zoomable = true;
+ this.AccelerationChart.ChartAreas[0].AxisY.ScaleView.Zoomable = true;
+
+ this.AccelerationChart.ChartAreas[0].AxisY.ScaleView.MinSize = 0.01;
+ this.AccelerationChart.ChartAreas[0].AxisY.ScaleView.SmallScrollSize = 0.001;
+
+ this.AccelerationChart.ChartAreas[0].CursorY.Interval = 0.001;
+
+ this.AccelerationChart.ChartAreas[0].CursorX.AutoScroll = true;
+ this.AccelerationChart.ChartAreas[0].CursorY.AutoScroll = true;
+
+ this.AccelerationChart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true;
+ this.AccelerationChart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true;
+
+ this.AccelerationChart.ChartAreas[0].CursorX.IsUserEnabled = true;
+ this.AccelerationChart.ChartAreas[0].CursorY.IsUserEnabled = true;
}
public static double Magnitude(int x, int y)