修复PieChart的Tooltip高亮不会还原的问题

This commit is contained in:
monitor1394
2021-05-18 00:06:15 +08:00
parent 6c746efb32
commit 5a6b2936b3

View File

@@ -75,7 +75,6 @@ namespace XCharts
public bool CheckTootipArea(Vector2 local) public bool CheckTootipArea(Vector2 local)
{ {
if (!PointerIsInPieSerie(chart.series, local)) return false;
bool selected = false; bool selected = false;
chart.tooltip.runtimeDataIndex.Clear(); chart.tooltip.runtimeDataIndex.Clear();
foreach (var serie in chart.series.list) foreach (var serie in chart.series.list)
@@ -493,8 +492,6 @@ namespace XCharts
} }
} }
private void DrawPieLabel(Serie serie, int dataIndex, SerieData serieData, Color serieColor) private void DrawPieLabel(Serie serie, int dataIndex, SerieData serieData, Color serieColor)
{ {
if (serieData.labelObject == null) return; if (serieData.labelObject == null) return;