增加PieChart多饼图支持

This commit is contained in:
monitor1394
2019-07-28 00:44:53 +08:00
parent a1dc6ca8ad
commit 0f25f4449b
26 changed files with 227112 additions and 123737 deletions

View File

@@ -65,8 +65,8 @@ namespace XCharts
/// <summary>
/// The data index currently indicated by Tooltip.
/// </summary>
public int[] dataIndex { get; set; }
public int[] lastDataIndex { get; set; }
public List<int> dataIndex { get; set; }
public List<int> lastDataIndex { get; set; }
public float[] xValues { get; set; }
public float[] yValues { get; set; }
@@ -85,8 +85,8 @@ namespace XCharts
m_Show = true,
xValues = new float[2],
yValues = new float[2],
dataIndex = new int[2],
lastDataIndex = new int[2]
dataIndex = new List<int>() { -1, -1 },
lastDataIndex = new List<int>() { -1, -1 }
};
return tooltip;
}
@@ -141,6 +141,11 @@ namespace XCharts
yValues[0] = yValues[1] = -1;
}
public bool IsActive()
{
return m_GameObject != null && m_GameObject.activeInHierarchy;
}
public void SetActive(bool flag)
{
lastDataIndex[0] = lastDataIndex[1] = -1;