fix serielabel refresh exception (#215)

This commit is contained in:
monitor1394
2022-07-13 21:45:09 +08:00
parent a60d258eb8
commit 012eb6808f
3 changed files with 13 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
# 更新日志
[branch-2.0](#branch-2.0)
[v2.8.2](#v2.8.2)
[v2.8.1](#v2.8.1)
[v2.8.0](#v2.8.0)
[v2.7.0](#v2.7.0)
@@ -45,6 +46,12 @@
## branch-2.0
## v2.8.2
* (2022.07.13) Release `v2.8.2` version
* (2022.07.13) Fixed `SerieLabel` refresh exception #215
* (2022.06.30) Optimize `Radar` so that the `Tooltip` layer is above `Indicator`
## v2.8.1
* (2022.05.03) Added `onLegendClick`, `onLegendEnter` and `onLegendExit` delegate callbacks for `Legend`

View File

@@ -2,6 +2,7 @@
# 更新日志
[branch-2.0](#branch-2.0)
[v2.8.2](#v2.8.2)
[v2.8.1](#v2.8.1)
[v2.8.0](#v2.8.0)
[v2.7.0](#v2.7.0)
@@ -45,6 +46,10 @@
## branch-2.0
## v2.8.2
* (2022.07.13) 发布`v2.8.2`版本
* (2022.07.13) 修复`SerieLabel`刷新异常的问题 #215
* (2022.06.30) 优化`Radar``Tooltip`的层在`Indicator`之上
## v2.8.1

View File

@@ -528,12 +528,12 @@ namespace XCharts
m_ChartMaxAnchor, m_ChartPivot, m_ChartSizeDelta);
m_SerieLabelRoot.hideFlags = chartHideFlags;
SerieLabelPool.ReleaseAll(m_SerieLabelRoot.transform);
int count = 0;
for (int i = 0; i < m_Series.Count; i++)
{
var serie = m_Series.list[i];
serie.index = i;
SerieHelper.UpdateCenter(serie, chartPosition, chartWidth, chartHeight);
int count = 0;
for (int j = 0; j < serie.data.Count; j++)
{
var serieData = serie.data[j];