增加旧版本数据自动转移功能;完善AddData数据接口

This commit is contained in:
monitor1394
2019-07-25 09:42:00 +08:00
parent a54415059e
commit fe703b7771
6 changed files with 148 additions and 22 deletions

View File

@@ -46,7 +46,7 @@ public class Demo11_AddSinCurve : MonoBehaviour
{
float xvalue = Mathf.PI / 180 * angle;
float yvalue = Mathf.Sin(xvalue);
chart.AddXYData(0, xvalue, yvalue);
chart.AddData(0, xvalue, yvalue);
}
}
@@ -56,6 +56,6 @@ public class Demo11_AddSinCurve : MonoBehaviour
angle++;
float xvalue = Mathf.PI / 180 * angle;
float yvalue = Mathf.Sin(xvalue);
chart.AddXYData(0, xvalue, yvalue);
chart.AddData(0, xvalue, yvalue);
}
}