2021-01-11 08:54:28 +08:00
|
|
|
|
/************************************************/
|
|
|
|
|
|
/* */
|
|
|
|
|
|
/* Copyright (c) 2018 - 2021 monitor1394 */
|
|
|
|
|
|
/* https://github.com/monitor1394 */
|
|
|
|
|
|
/* */
|
|
|
|
|
|
/************************************************/
|
2019-10-22 04:09:04 +08:00
|
|
|
|
|
2019-05-11 04:33:54 +08:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
namespace XCharts
|
|
|
|
|
|
{
|
2019-07-15 00:24:04 +08:00
|
|
|
|
[AddComponentMenu("XCharts/PieChart", 15)]
|
|
|
|
|
|
[ExecuteInEditMode]
|
|
|
|
|
|
[RequireComponent(typeof(RectTransform))]
|
|
|
|
|
|
[DisallowMultipleComponent]
|
2020-08-29 22:44:32 +08:00
|
|
|
|
public partial class PieChart : BaseChart
|
2019-05-11 04:33:54 +08:00
|
|
|
|
{
|
2019-07-15 00:24:04 +08:00
|
|
|
|
protected override void Awake()
|
|
|
|
|
|
{
|
2019-07-28 00:44:53 +08:00
|
|
|
|
base.Awake();
|
|
|
|
|
|
raycastTarget = false;
|
2019-07-15 00:24:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if UNITY_EDITOR
|
|
|
|
|
|
protected override void Reset()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.Reset();
|
2021-01-11 08:54:28 +08:00
|
|
|
|
title.text = "PieChart";
|
|
|
|
|
|
m_Legends[0].show = true;
|
2019-07-15 00:24:04 +08:00
|
|
|
|
RemoveData();
|
2021-01-11 08:54:28 +08:00
|
|
|
|
SerieTemplate.AddDefaultPieSerie(this, "serie1");
|
2019-07-15 00:24:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
#endif
|
2019-05-11 04:33:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|