mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 17:00:08 +00:00
重构Component相关代码,调整API接口
This commit is contained in:
@@ -10,7 +10,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
protected override void DefaultChart()
|
||||
{
|
||||
var legend = GetOrAddChartComponent<Legend>();
|
||||
var legend = EnsureChartComponent<Legend>();
|
||||
legend.show = true;
|
||||
|
||||
RemoveData();
|
||||
|
||||
Reference in New Issue
Block a user