AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
LineChart.cs
1 
2 /************************************************/
3 /* */
4 /* Copyright (c) 2018 - 2021 monitor1394 */
5 /* https://github.com/monitor1394 */
6 /* */
7 /************************************************/
8 
9 using UnityEngine;
10 
11 namespace XCharts
12 {
13  [AddComponentMenu("XCharts/LineChart", 13)]
14  [ExecuteInEditMode]
15  [RequireComponent(typeof(RectTransform))]
16  [DisallowMultipleComponent]
17  public class LineChart : CoordinateChart
18  {
19 
20 #if UNITY_EDITOR
21  protected override void Reset()
22  {
23  base.Reset();
24  title.text = "LineChart";
25  tooltip.type = Tooltip.Type.Line;
26 
27  visualMap.enable = false;
28  visualMap.show = false;
29  visualMap.autoMinMax = true;
30  visualMap.inRange.Clear();
31  visualMap.inRange.Add(Color.blue);
32  visualMap.inRange.Add(Color.red);
33 
34  RemoveData();
35  SerieTemplate.AddDefaultLineSerie(this, "serie1");
36  for (int i = 0; i < 5; i++)
37  {
38  AddXAxisData("x" + (i*i + 1));
39  }
40  }
41 #endif
42  }
43 }
XCharts.Tooltip.Type
Type
Indicator type. 指示器类型。
Definition: Tooltip.cs:25
XCharts.Tooltip
Tooltip component. 提示框组件。
Definition: Tooltip.cs:19
XCharts.CoordinateChart.RemoveData
override void RemoveData()
Remove all data from series,legend and axis. The series list is also cleared. 清空所有图例,系列和坐标轴类目数据。系列的列表...
Definition: CoordinateChart_API.cs:71
XCharts.CoordinateChart.AddXAxisData
void AddXAxisData(string category, int xAxisIndex=0)
Add a category data to xAxis. 添加一个类目数据到指定的x轴。
Definition: CoordinateChart_API.cs:101
XCharts
Definition: RewardChart.cs:14
XCharts.LineChart
Definition: LineChart.cs:17
XCharts.CoordinateChart
The basic class of rectangular coordinate chart,such as LineChart,BarChart and ScatterChart....
Definition: CoordinateChart_API.cs:18