mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-15 12:40:12 +00:00
18 lines
478 B
C#
18 lines
478 B
C#
using UnityEngine;
|
|
|
|
namespace XCharts.Runtime
|
|
{
|
|
[AddComponentMenu("XCharts/RingChart", 20)]
|
|
[ExecuteInEditMode]
|
|
[RequireComponent(typeof(RectTransform))]
|
|
[DisallowMultipleComponent]
|
|
public class RingChart : BaseChart
|
|
{
|
|
protected override void DefaultChart()
|
|
{
|
|
GetChartComponent<Tooltip>().type = Tooltip.Type.Line;
|
|
RemoveData();
|
|
Ring.AddDefaultSerie(this, GenerateDefaultSerieName());
|
|
}
|
|
}
|
|
} |