mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-20 15:30:09 +00:00
修复Legend的formatter在数据变更时没有自动刷新的问题
This commit is contained in:
@@ -69,6 +69,7 @@ slug: /changelog
|
||||
|
||||
## master
|
||||
|
||||
* (2023.11.11) 修复`Legend`的`formatter`在数据变更时没有自动刷新的问题
|
||||
* (2023.11.05) 修复`SerieEventData`的`value`一直是0的问题 (#287)
|
||||
* (2023.11.03) 修复`Bar`设置渐变色时鼠标移出效果异常的问题 (#285)
|
||||
* (2023.11.02) 优化`SerieData`设置`ignore`时`formatter`的忽略问题
|
||||
|
||||
@@ -47,6 +47,10 @@ namespace XCharts.Example
|
||||
{
|
||||
UpdateData();
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.C))
|
||||
{
|
||||
chart.ClearData();
|
||||
}
|
||||
lastAddTime += Time.deltaTime;
|
||||
if (loopAdd && lastAddTime >= loopAddTime)
|
||||
{
|
||||
|
||||
@@ -108,6 +108,7 @@ namespace XCharts.Runtime
|
||||
if (serie.dataDirty)
|
||||
{
|
||||
SeriesHelper.UpdateSerieNameList(chart, ref chart.m_LegendRealShowName);
|
||||
chart.OnSerieDataUpdate(serie.index);
|
||||
serie.OnDataUpdate();
|
||||
serie.dataDirty = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user