public void RecordTemp(string value) { temperature.Text = value + "°C"; try { float v = float.Parse(value); for (var i = 0; i < tempEntries.Length - 1; i++) { tempEntries[i] = tempEntries[i + 1]; } tempEntries[tempEntries.Length - 1] = new Microcharts.Entry(v) { Color = TemperatureColor(v) }; chartView.InvalidateSurface(); } catch { } }
public void InvalidateChart() { chartView.InvalidateSurface(); }