public void ResetData(string key, float data) { if (!lineMap.ContainsKey(key)) { Debug.LogError("LineChart:not contain line key:" + key); return; } LineData_old line = lineMap[key]; line.AddData(data, GetMaxPointCount()); }
public void AddPoint(string key, float point) { if (!lineMap.ContainsKey(key)) { Debug.LogError("LineChart:not contain line key:" + key); return; } LineData_old line = lineMap[key]; line.AddData(point, GetMaxPointCount()); UpdateMesh(); CheckMaxDataChange(); }