去掉MultiData接口,命名空间重命名

This commit is contained in:
monitor1394
2019-04-02 22:49:44 +08:00
parent 735783fdb5
commit ba1e2c29a2
10 changed files with 21 additions and 106 deletions

View File

@@ -1,7 +1,7 @@
using System;
using UnityEngine;
using UnityEngine.UI;
using xcharts;
using XCharts;
public class BarChartDemo : MonoBehaviour
{
@@ -14,7 +14,6 @@ public class BarChartDemo : MonoBehaviour
private int dataCount = 0;
private BarChart bigdataChart;
void Awake()
{
var xchart = transform.Find("xchart");
@@ -66,7 +65,7 @@ public class BarChartDemo : MonoBehaviour
for (var i = 0; i < count; i++)
{
chart.XAxis.AddMultiData(time.ToString("hh:mm:ss"));
chart.XAxis.AddData(time.ToString("hh:mm:ss"));
smallBaseValue = i % 30 == 0
? UnityEngine.Random.Range(0, 700)
@@ -79,7 +78,7 @@ public class BarChartDemo : MonoBehaviour
//var index = i % 100;
//var value = (Mathf.Sin(index / 5) * (index / 5 - 10) + index / 6) * 5;
value = Mathf.Abs(value);
chart.AddMultiData(0, value);
chart.AddData(0, value);
time = time.AddSeconds(1);
}
}