mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 21:40:41 +00:00
去掉MultiData接口,命名空间重命名
This commit is contained in:
@@ -4,7 +4,7 @@ using UnityEngine.UI;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace xcharts
|
||||
namespace XCharts
|
||||
{
|
||||
|
||||
[System.Serializable]
|
||||
@@ -46,16 +46,8 @@ namespace xcharts
|
||||
public bool boundaryGap = true;
|
||||
[SerializeField]
|
||||
private List<string> data;
|
||||
private List<string> multidata = new List<string>();
|
||||
|
||||
private List<string> Data
|
||||
{
|
||||
get
|
||||
{
|
||||
if (multidata.Count > 0) return multidata;
|
||||
else return data;
|
||||
}
|
||||
}
|
||||
private List<string> Data { get { return data; } }
|
||||
|
||||
public void AddData(string category)
|
||||
{
|
||||
@@ -66,15 +58,6 @@ namespace xcharts
|
||||
data.Add(category);
|
||||
}
|
||||
|
||||
public void AddMultiData(string category)
|
||||
{
|
||||
if (multidata.Count >= maxSplitNumber && maxSplitNumber != 0)
|
||||
{
|
||||
multidata.RemoveAt(0);
|
||||
}
|
||||
multidata.Add(category);
|
||||
}
|
||||
|
||||
public string GetData(int index)
|
||||
{
|
||||
return Data[index];
|
||||
|
||||
Reference in New Issue
Block a user