From 32323636b4b5390c114fc2a6d845b7621a983cdc Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Thu, 13 Aug 2020 20:56:41 -0700 Subject: Fix initial points, add poll time constant --- grapher/Models/Charts/AccelCharts.cs | 6 +++--- grapher/Models/Charts/ChartXY.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'grapher/Models/Charts') 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(); } -- cgit v1.2.3