diff --git a/CHANGELOG-EN.md b/CHANGELOG-EN.md index 2b4b276b..f111fd4c 100644 --- a/CHANGELOG-EN.md +++ b/CHANGELOG-EN.md @@ -39,6 +39,7 @@ ## master +* (2021.08.22) Fixed `Axis` label may not be updated when `DataZoom` is turn on (#164) * (2021.08.15) Improved `Axis`'s `AxisLabel` text rotate setting to avoid inconsistency offset in `DataZoom` (#163) * (2021.08.14) Added `Legend`'s `textAutoColor` to set the text color match with `Serie` color (#163) * (2021.08.12) Optimize `BarChart` setting `Corner` when the positive and negative columns are fillet symmetric diff --git a/CHANGELOG.md b/CHANGELOG.md index e3ee8d1e..a632bdbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ ## master +* (2021.08.22) 修复`Axis`在`DataZoom`开启时`Label`可能不更新的问题 (#164) * (2021.08.15) 优化`Axis`的`AxisLabel`文本旋转设置,避免在DataZoom开启时偏移不一致 (#163) * (2021.08.14) 增加`Legend`的`textAutoColor`设置文本颜色和`Serie`一致 (#163) * (2021.08.12) 优化`BarChart`设置`Corner`时正负柱条圆角对称 diff --git a/Runtime/Component/Main/Axis.cs b/Runtime/Component/Main/Axis.cs index e0b1e5b7..5cb5ed7e 100644 --- a/Runtime/Component/Main/Axis.cs +++ b/Runtime/Component/Main/Axis.cs @@ -489,6 +489,12 @@ namespace XCharts return axis; } + public override void SetComponentDirty() + { + m_NeedUpdateFilterData = true; + base.SetComponentDirty(); + } + public void Copy(Axis axis) { show = axis.show;