mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-20 15:30:09 +00:00
增加旧版本数据自动转移功能;完善AddData数据接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user