mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-20 23:40:10 +00:00
完善Pie饼图的交互动画效果
This commit is contained in:
@@ -203,7 +203,6 @@ namespace XCharts.Runtime
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
Debug.LogError("Reset:"+this);
|
||||
m_UpdateFlag = false;
|
||||
m_ValueEnable = false;
|
||||
m_PreviousValue = float.NaN;
|
||||
|
||||
@@ -284,9 +284,9 @@ namespace XCharts.Runtime
|
||||
return needShow;
|
||||
}
|
||||
|
||||
public static bool CheckDataHighlighted(Serie serie, string legendName, bool heighlight)
|
||||
public static int CheckDataHighlighted(Serie serie, string legendName, bool heighlight)
|
||||
{
|
||||
bool show = false;
|
||||
var highlightedDataIndex = 0;
|
||||
if (legendName.Equals(serie.serieName))
|
||||
{
|
||||
serie.highlight = heighlight;
|
||||
@@ -298,11 +298,14 @@ namespace XCharts.Runtime
|
||||
if (legendName.Equals(data.name))
|
||||
{
|
||||
data.context.highlight = heighlight;
|
||||
if (data.context.highlight) show = true;
|
||||
if (data.context.highlight)
|
||||
{
|
||||
highlightedDataIndex = data.index;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return show;
|
||||
return highlightedDataIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user