mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-28 12:08:46 +00:00
更新教程
This commit is contained in:
@@ -19,6 +19,7 @@ namespace XCharts.Examples
|
|||||||
if (chart == null)
|
if (chart == null)
|
||||||
{
|
{
|
||||||
chart = gameObject.AddComponent<LineChart>();
|
chart = gameObject.AddComponent<LineChart>();
|
||||||
|
chart.SetSize(580, 300);//代码动态添加图表需要设置尺寸,或直接操作chart.rectTransform
|
||||||
}
|
}
|
||||||
chart.title.show = true;
|
chart.title.show = true;
|
||||||
chart.title.text = "Line Simple";
|
chart.title.text = "Line Simple";
|
||||||
|
|||||||
Reference in New Issue
Block a user