summaryrefslogtreecommitdiff
path: root/grapher/Form1.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-08-02 15:54:47 -0700
committerJacob Palecki <[email protected]>2020-08-02 15:54:47 -0700
commit529f18bd6ddbcd182fd03a13e3c07dc10162f036 (patch)
treed71ba432d3f6a2c79ec41901f05e95eeed23aeb6 /grapher/Form1.cs
parentMove logic out of forms class into accelgui class (diff)
downloadrawaccel-529f18bd6ddbcd182fd03a13e3c07dc10162f036.tar.xz
rawaccel-529f18bd6ddbcd182fd03a13e3c07dc10162f036.zip
Add velocity graph
Diffstat (limited to 'grapher/Form1.cs')
-rw-r--r--grapher/Form1.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/grapher/Form1.cs b/grapher/Form1.cs
index 1cbd6c9..50d6476 100644
--- a/grapher/Form1.cs
+++ b/grapher/Form1.cs
@@ -117,6 +117,7 @@ namespace grapher
AccelGUI = new AccelGUI(
this,
AccelerationChart,
+ VelocityChart,
managedAcceleration,
accelerationOptions,
sensitivity,
@@ -146,6 +147,26 @@ namespace grapher
this.AccelerationChart.ChartAreas[0].CursorX.IsUserEnabled = true;
this.AccelerationChart.ChartAreas[0].CursorY.IsUserEnabled = true;
+
+ this.VelocityChart.ChartAreas[0].AxisX.RoundAxisValues();
+
+ this.VelocityChart.ChartAreas[0].AxisX.ScaleView.Zoomable = true;
+ this.VelocityChart.ChartAreas[0].AxisY.ScaleView.Zoomable = true;
+
+ this.VelocityChart.ChartAreas[0].AxisY.ScaleView.MinSize = 0.01;
+ this.VelocityChart.ChartAreas[0].AxisY.ScaleView.SmallScrollSize = 0.001;
+
+ this.VelocityChart.ChartAreas[0].CursorY.Interval = 0.001;
+
+ this.VelocityChart.ChartAreas[0].CursorX.AutoScroll = true;
+ this.VelocityChart.ChartAreas[0].CursorY.AutoScroll = true;
+
+ this.VelocityChart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true;
+ this.VelocityChart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true;
+
+ this.VelocityChart.ChartAreas[0].CursorX.IsUserEnabled = true;
+ this.VelocityChart.ChartAreas[0].CursorY.IsUserEnabled = true;
+
}
#endregion Constructor