summaryrefslogtreecommitdiff
path: root/grapher/Models/Charts
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-08-13 20:56:41 -0700
committerJacob Palecki <[email protected]>2020-08-13 20:56:41 -0700
commit32323636b4b5390c114fc2a6d845b7621a983cdc (patch)
tree01d7df8f55e5a1cce90617fd876eaf994eb26846 /grapher/Models/Charts
parentAll works smoothly (diff)
downloadrawaccel-32323636b4b5390c114fc2a6d845b7621a983cdc.tar.xz
rawaccel-32323636b4b5390c114fc2a6d845b7621a983cdc.zip
Fix initial points, add poll time constant
Diffstat (limited to 'grapher/Models/Charts')
-rw-r--r--grapher/Models/Charts/AccelCharts.cs6
-rw-r--r--grapher/Models/Charts/ChartXY.cs2
2 files changed, 4 insertions, 4 deletions
diff --git a/grapher/Models/Charts/AccelCharts.cs b/grapher/Models/Charts/AccelCharts.cs
index 42377c4..1aa3909 100644
--- a/grapher/Models/Charts/AccelCharts.cs
+++ b/grapher/Models/Charts/AccelCharts.cs
@@ -84,15 +84,15 @@ namespace grapher
private int FormBorderHeight { get; }
- public void MakeDots(int x, int y)
+ public void MakeDots(int x, int y, double timeInMs)
{
if (Combined)
{
- AccelData.CalculateDots(x, y);
+ AccelData.CalculateDots(x, y, timeInMs);
}
else
{
- AccelData.CalculateDotsXY(x, y);
+ AccelData.CalculateDotsXY(x, y, timeInMs);
}
}
diff --git a/grapher/Models/Charts/ChartXY.cs b/grapher/Models/Charts/ChartXY.cs
index c0c8713..81874a2 100644
--- a/grapher/Models/Charts/ChartXY.cs
+++ b/grapher/Models/Charts/ChartXY.cs
@@ -121,7 +121,7 @@ namespace grapher
{
if (chart.Visible)
{
- (var x, var y) = point.Get();
+ point.Get(out var x, out var y);
chart.Series[1].Points.DataBindXY(x, y);
chart.Update();
}