Files
XCharts/Runtime/RingChart.cs

32 lines
846 B
C#
Raw Normal View History

2020-03-08 10:47:48 +08:00

2021-01-11 08:54:28 +08:00
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
2020-03-08 10:47:48 +08:00
using UnityEngine;
namespace XCharts
{
[AddComponentMenu("XCharts/RingChart", 20)]
[ExecuteInEditMode]
[RequireComponent(typeof(RectTransform))]
[DisallowMultipleComponent]
public partial class RingChart : BaseChart
{
#if UNITY_EDITOR
protected override void Reset()
{
base.Reset();
2021-01-11 08:54:28 +08:00
title.text = "RingChart";
tooltip.type = Tooltip.Type.Line;
2020-03-08 10:47:48 +08:00
RemoveData();
2021-01-11 08:54:28 +08:00
SerieTemplate.AddDefaultRingSerie(this, "serie1");
2020-03-08 10:47:48 +08:00
}
#endif
}
}