mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
增加Chart的更多快捷创建图表菜单
This commit is contained in:
@@ -2,6 +2,10 @@ using UnityEngine;
|
||||
|
||||
namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Radar chart is mainly used to show multi-variable data, such as the analysis of a football player's varied attributes. It relies radar component.
|
||||
/// || 雷达图主要用于显示多变量的数据,例如足球运动员的各项属性分析。依赖雷达组件。
|
||||
/// </summary>
|
||||
[AddComponentMenu("XCharts/RadarChart", 16)]
|
||||
[ExecuteInEditMode]
|
||||
[RequireComponent(typeof(RectTransform))]
|
||||
@@ -16,5 +20,16 @@ namespace XCharts.Runtime
|
||||
AddChartComponent<RadarCoord>();
|
||||
Radar.AddDefaultSerie(this, GenerateDefaultSerieName());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// default circle radar chart.
|
||||
/// || 默认圆形雷达图。
|
||||
/// </summary>
|
||||
public void DefaultCircleRadarChart()
|
||||
{
|
||||
CheckChartInit();
|
||||
var radarCoord = GetChartComponent<RadarCoord>();
|
||||
radarCoord.shape = RadarCoord.Shape.Circle;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user