重构接口

This commit is contained in:
monitor1394
2019-09-29 09:16:15 +08:00
parent 0493a2ebfe
commit 83deb5e103
10 changed files with 51 additions and 45 deletions

View File

@@ -30,7 +30,7 @@ public class Demo10_LineSimple : MonoBehaviour
chart.xAxises[0].boundaryGap = true;
chart.RemoveData();
chart.AddSerie("test", SerieType.Line);
chart.AddSerie(SerieType.Line);
for (int i = 0; i < dataCount; i++)
{
chart.AddXAxisData("x" + i);

View File

@@ -37,7 +37,7 @@ public class Demo11_AddSinCurve : MonoBehaviour
chart.RemoveData();
var serie = chart.AddSerie("test", SerieType.Line);
var serie = chart.AddSerie(SerieType.Line);
serie.symbol.type = SerieSymbolType.None;
serie.lineType = LineType.Normal;
for (angle = 0; angle < 1080; angle++)

View File

@@ -22,7 +22,7 @@ public class Demo_Dynamic : MonoBehaviour
{
chart = gameObject.GetComponentInChildren<CoordinateChart>();
//chart.RemoveData();
var serie = chart.AddSerie("data", SerieType.Line);
var serie = chart.AddSerie(SerieType.Line);
serie.symbol.type = SerieSymbolType.None;
serie.maxCache = maxCacheDataNumber;
chart.xAxises[0].maxCache = maxCacheDataNumber;