Files
XCharts/Runtime/Chart/RingChart.cs
2023-06-04 21:52:23 +08:00

19 lines
545 B
C#

using UnityEngine;
namespace XCharts.Runtime
{
[AddComponentMenu("XCharts/RingChart", 20)]
[ExecuteInEditMode]
[RequireComponent(typeof(RectTransform))]
[DisallowMultipleComponent]
[HelpURL("https://xcharts-team.github.io/docs/configuration")]
public class RingChart : BaseChart
{
protected override void DefaultChart()
{
GetChartComponent<Tooltip>().type = Tooltip.Type.Line;
RemoveData();
Ring.AddDefaultSerie(this, GenerateDefaultSerieName());
}
}
}