mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-18 22:40:10 +00:00
增加PieChart多饼图支持
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user