mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
修复CoordinateChart的tooltip报错
This commit is contained in:
@@ -75,6 +75,7 @@ namespace XCharts
|
||||
|
||||
public bool CheckTootipArea(Vector2 local)
|
||||
{
|
||||
if (chart.series.Contains(SerieType.Pie)) return false;
|
||||
bool selected = false;
|
||||
chart.tooltip.runtimeDataIndex.Clear();
|
||||
foreach (var serie in chart.series.list)
|
||||
@@ -102,7 +103,7 @@ namespace XCharts
|
||||
chart.tooltip.SetActive(false);
|
||||
chart.RefreshChart();
|
||||
}
|
||||
return true;
|
||||
return selected;
|
||||
}
|
||||
|
||||
public bool OnLegendButtonClick(int index, string legendName, bool show)
|
||||
|
||||
Reference in New Issue
Block a user