mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-30 05:08:48 +00:00
修复Legend点击时Serie的Label不刷新的问题
This commit is contained in:
@@ -65,6 +65,7 @@ slug: /changelog
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2023.02.28) 修复`Legend`点击时`Serie`的`Label`不刷新的问题
|
||||||
* (2023.02.26) 增加`DataZoom`的`startEndFunction`委托
|
* (2023.02.26) 增加`DataZoom`的`startEndFunction`委托
|
||||||
* (2023.02.12) 重构`Component`相关代码,调整API接口
|
* (2023.02.12) 重构`Component`相关代码,调整API接口
|
||||||
* (2023.02.10) 修复`Axis`在`Log`轴时某些情况下最小值不正确的问题
|
* (2023.02.10) 修复`Axis`在`Log`轴时某些情况下最小值不正确的问题
|
||||||
|
|||||||
@@ -647,6 +647,7 @@ namespace XCharts.Runtime
|
|||||||
public void SetSerieActive(Serie serie, bool active)
|
public void SetSerieActive(Serie serie, bool active)
|
||||||
{
|
{
|
||||||
serie.show = active;
|
serie.show = active;
|
||||||
|
serie.RefreshLabel();
|
||||||
serie.AnimationReset();
|
serie.AnimationReset();
|
||||||
if (active) serie.AnimationFadeIn();
|
if (active) serie.AnimationFadeIn();
|
||||||
UpdateLegendColor(serie.serieName, active);
|
UpdateLegendColor(serie.serieName, active);
|
||||||
|
|||||||
@@ -385,6 +385,7 @@ namespace XCharts.Runtime
|
|||||||
var isIgnore = serie.IsIgnoreIndex(serieData.index, defaultDimension);
|
var isIgnore = serie.IsIgnoreIndex(serieData.index, defaultDimension);
|
||||||
if (serie.show &&
|
if (serie.show &&
|
||||||
currLabel != null &&
|
currLabel != null &&
|
||||||
|
currLabel.show &&
|
||||||
serieData.context.canShowLabel &&
|
serieData.context.canShowLabel &&
|
||||||
!isIgnore)
|
!isIgnore)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user