diff --git a/Assets/XCharts/CHANGELOG.md b/Assets/XCharts/CHANGELOG.md index ba40b0db..33e1a615 100644 --- a/Assets/XCharts/CHANGELOG.md +++ b/Assets/XCharts/CHANGELOG.md @@ -1,6 +1,7 @@ # 更新日志 +* (2020.03.05) 增加运行时和非运行时参数变更自动刷新图表 * (2020.02.26) 重构`Legend`图例,改变样式,增加自定义图标等设置 * (2020.02.23) 增加`BaseChart.AnimationFadeOut()`渐出动画,重构动画系统 * (2020.02.13) 增加`BaseChart.RefreshTooltip()`接口立即重新初始化`Tooltip`组件 diff --git a/Assets/XCharts/Demo/Runtime/Demo13_LineSimple.cs b/Assets/XCharts/Demo/Runtime/Demo13_LineSimple.cs index a157d443..950246d2 100644 --- a/Assets/XCharts/Demo/Runtime/Demo13_LineSimple.cs +++ b/Assets/XCharts/Demo/Runtime/Demo13_LineSimple.cs @@ -38,10 +38,12 @@ namespace XCharts chart.RemoveData(); chart.AddSerie(SerieType.Line); + chart.AddSerie(SerieType.Line); for (int i = 0; i < 10; i++) { chart.AddXAxisData("x" + i); chart.AddData(0, Random.Range(10, 20)); + chart.AddData(1, Random.Range(10, 20)); } } } diff --git a/Assets/XCharts/Demo/Runtime/Demo_Test.cs b/Assets/XCharts/Demo/Runtime/Demo_Test.cs index a7c32bcc..09d9ce4e 100644 --- a/Assets/XCharts/Demo/Runtime/Demo_Test.cs +++ b/Assets/XCharts/Demo/Runtime/Demo_Test.cs @@ -19,30 +19,41 @@ namespace XCharts void Awake() { chart = gameObject.GetComponent(); + var btnTrans = transform.parent.Find("Button"); + if (btnTrans) + { + btnTrans.gameObject.GetComponent