[bug] fix chart not being created correctly at runtime

This commit is contained in:
monitor1394
2022-06-30 08:31:09 +08:00
parent bb9f28dd5c
commit 47c9b99931
2 changed files with 6 additions and 2 deletions

View File

@@ -54,6 +54,7 @@
## master
* (2022.06.30) 修复`Runtime`下代码创建图表时组件无法初始化的问题
* (2022.06.29) 增加`Tooltip``itemFormatter`支持`{c0}`显示各维度数据 (#205)
* (2022.06.28) 优化`Pie`设置`avoidLabelOverlap`时的文本表现 (#56)
* (2022.06.25) 优化`Line`的平滑曲线表现 (#169)

View File

@@ -275,9 +275,12 @@ namespace XCharts.Runtime
if (component == null) return;
if (component.anyDirty)
{
if (component.componentDirty && component.refreshComponent != null)
if (component.componentDirty)
{
component.refreshComponent.Invoke();
if (component.refreshComponent != null)
component.refreshComponent.Invoke();
else
component.handler.InitComponent();
}
if (component.vertsDirty)
{