mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
修复SerieLabel在点击图例隐藏Serie后还显示的问题#94
This commit is contained in:
@@ -1498,9 +1498,13 @@ namespace XCharts
|
||||
var isPercentStack = SeriesHelper.IsPercentStack(m_Series, serie.stack, SerieType.Bar);
|
||||
for (int j = 0; j < serie.data.Count; j++)
|
||||
{
|
||||
if (j >= serie.dataPoints.Count) break;
|
||||
var serieData = serie.data[j];
|
||||
if (serieData.labelObject == null) continue;
|
||||
if (j >= serie.dataPoints.Count)
|
||||
{
|
||||
serieData.SetLabelActive(false);
|
||||
continue;
|
||||
}
|
||||
var pos = serie.dataPoints[j];
|
||||
var serieLabel = SerieHelper.GetSerieLabel(serie, serieData);
|
||||
var dimension = 1;
|
||||
@@ -1539,6 +1543,7 @@ namespace XCharts
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("lable not show:" + i + "," + j);
|
||||
serieData.SetLabelActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user