AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
PieChart.cs
1 /************************************************/
2 /* */
3 /* Copyright (c) 2018 - 2021 monitor1394 */
4 /* https://github.com/monitor1394 */
5 /* */
6 /************************************************/
7 
8 using UnityEngine;
9 
10 namespace XCharts
11 {
12  [AddComponentMenu("XCharts/PieChart", 15)]
13  [ExecuteInEditMode]
14  [RequireComponent(typeof(RectTransform))]
15  [DisallowMultipleComponent]
16  public partial class PieChart : BaseChart
17  {
18  protected override void Awake()
19  {
20  base.Awake();
21  raycastTarget = false;
22  }
23 
24 #if UNITY_EDITOR
25  protected override void Reset()
26  {
27  base.Reset();
28  title.text = "PieChart";
29  m_Legends[0].show = true;
30  RemoveData();
31  SerieTemplate.AddDefaultPieSerie(this, "serie1");
32  }
33 #endif
34  }
35 }
XCharts.Title.text
string text
The main title text, supporting for newlines. 主标题文本,支持使用 换行。
Definition: Title.cs:38
XCharts
Definition: RewardChart.cs:14
XCharts.PieChart
Definition: PieChart.cs:16
XCharts.BaseChart
The base class of all charts. 所有Chart的基类。
Definition: BaseChart_API.cs:21
XCharts.BaseChart.title
Title? title
The title setting of chart. 标题组件
Definition: BaseChart_API.cs:49
XCharts.BaseChart.RemoveData
virtual void RemoveData()
Remove all data from series and legend. The series list is also cleared. 清除所有系列和图例数据,系列的列表也会被清除。
Definition: BaseChart_API.cs:166