mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
修复Legend点击时Serie的Label不刷新的问题
This commit is contained in:
@@ -647,6 +647,7 @@ namespace XCharts.Runtime
|
||||
public void SetSerieActive(Serie serie, bool active)
|
||||
{
|
||||
serie.show = active;
|
||||
serie.RefreshLabel();
|
||||
serie.AnimationReset();
|
||||
if (active) serie.AnimationFadeIn();
|
||||
UpdateLegendColor(serie.serieName, active);
|
||||
|
||||
@@ -385,6 +385,7 @@ namespace XCharts.Runtime
|
||||
var isIgnore = serie.IsIgnoreIndex(serieData.index, defaultDimension);
|
||||
if (serie.show &&
|
||||
currLabel != null &&
|
||||
currLabel.show &&
|
||||
serieData.context.canShowLabel &&
|
||||
!isIgnore)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user