AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
XCharts.Axis Class Reference

The axis in rectangular coordinate. 直角坐标系的坐标轴组件。 More...

Inheritance diagram for XCharts.Axis:
Collaboration diagram for XCharts.Axis:

Public Types

enum  AxisType { AxisType.Value, AxisType.Category, AxisType.Log, AxisType.Time }
 the type of axis. 坐标轴类型。 More...
 
enum  AxisMinMaxType { AxisMinMaxType.Default, AxisMinMaxType.MinMax, AxisMinMaxType.Custom }
 the type of axis min and max value. 坐标轴最大最小刻度显示类型。 More...
 
enum  AxisPosition { Left, Right, Bottom, Top }
 the position of axis in grid. 坐标轴在Grid中的位置 More...
 

Public Member Functions

override void ClearComponentDirty ()
 
override void ClearVerticesDirty ()
 
Axis Clone ()
 
override void SetComponentDirty ()
 
void Copy (Axis axis)
 
void ClearData ()
 清空类目数据 More...
 
bool IsCategory ()
 是否为类目轴。 More...
 
bool IsValue ()
 是否为数值轴。 More...
 
bool IsLog ()
 是否为对数轴。 More...
 
bool IsTime ()
 是否为时间轴。 More...
 
void SetNeedUpdateFilterData ()
 
void AddData (string category)
 添加一个类目到类目数据列表 More...
 
void UpdateData (int index, string category)
 更新类目数据 More...
 
void AddIcon (Sprite icon)
 添加图标 More...
 
void UpdateIcon (int index, Sprite icon)
 更新图标 More...
 
string GetData (int index)
 获得指定索引的类目数据 More...
 
string GetData (int index, DataZoom dataZoom)
 获得在dataZoom范围内指定索引的类目数据 More...
 
Sprite GetIcon (int index)
 
double GetCurrMinValue (float duration)
 
double GetCurrMaxValue (float duration)
 
bool IsValueChanging (float duration)
 
float GetLogValue (double value)
 
bool IsLeft ()
 
bool IsRight ()
 
bool IsTop ()
 
bool IsBottom ()
 
- Public Member Functions inherited from XCharts.ChartComponent
virtual void SetVerticesDirty ()
 
virtual void ClearDirty ()
 
virtual void SetAllDirty ()
 

Protected Attributes

bool m_Show = true
 
AxisType m_Type
 
AxisMinMaxType m_MinMaxType
 
int m_GridIndex
 
int m_PolarIndex
 
AxisPosition m_Position
 
float m_Offset
 
float m_Min
 
float m_Max
 
int m_SplitNumber = 5
 
float m_Interval = 0
 
bool m_BoundaryGap = true
 
int m_MaxCache = 0
 
float m_LogBase = 10
 
bool m_LogBaseE = false
 
int m_CeilRate = 0
 
bool m_Inverse = false
 
List< Sprite > m_Icons = new List<Sprite>()
 
List< string > m_Data = new List<string>()
 
AxisLine m_AxisLine = AxisLine.defaultAxisLine
 
AxisName m_AxisName = AxisName.defaultAxisName
 
AxisTick m_AxisTick = AxisTick.defaultTick
 
AxisLabel m_AxisLabel = AxisLabel.defaultAxisLabel
 
AxisSplitLine m_SplitLine = AxisSplitLine.defaultSplitLine
 
AxisSplitArea m_SplitArea = AxisSplitArea.defaultSplitArea
 
List< string > m_RuntimeData = new List<string>()
 
- Protected Attributes inherited from XCharts.ChartComponent
bool m_VertsDirty
 
bool m_ComponentDirty
 
Painter m_Painter
 

Properties

bool show [get, set]
 Whether to show axis. 是否显示坐标轴。 More...
 
AxisType type [get, set]
 the type of axis. 坐标轴类型。 More...
 
AxisMinMaxType minMaxType [get, set]
 the type of axis minmax. 坐标轴刻度最大最小值显示类型。 More...
 
int gridIndex [get, set]
 The index of the grid on which the axis are located, by default, is in the first grid. 坐标轴所在的 grid 的索引,默认位于第一个 grid。 More...
 
int polarIndex [get, set]
 The index of the polar on which the axis are located, by default, is in the first polar. 坐标轴所在的 ploar 的索引,默认位于第一个 polar。 More...
 
AxisPosition position [get, set]
 the position of axis in grid. 坐标轴在Grid中的位置。 More...
 
float offset [get, set]
 the offset of axis from the default position. Useful when the same position has multiple axes. 坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。 More...
 
float min [get, set]
 The minimun value of axis.Valid when minMaxType is Custom 设定的坐标轴刻度最小值,当minMaxType为Custom时有效。 More...
 
float max [get, set]
 The maximum value of axis.Valid when minMaxType is Custom 设定的坐标轴刻度最大值,当minMaxType为Custom时有效。 More...
 
int splitNumber [get, set]
 Number of segments that the axis is split into. 坐标轴的分割段数。 More...
 
float interval [get, set]
 Compulsively set segmentation interval for axis.This is unavailable for category axis. 强制设置坐标轴分割间隔。无法在类目轴中使用。 More...
 
bool? boundaryGap [get, set]
 The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'. 坐标轴两边是否留白。只对类目轴有效。 More...
 
float logBase [get, set]
 Base of logarithm, which is valid only for numeric axes with type: 'Log'. 对数轴的底数,只在对数轴(type:'Log')中有效。 More...
 
bool logBaseE [get, set]
 On the log axis, if base e is the natural number, and is true, logBase fails. 对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。 More...
 
int? maxCache [get, set]
 The max number of axis data cache. The first data will be remove when the size of axis data is larger then maxCache. 可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。 More...
 
int? ceilRate [get, set]
 The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. 最大最小值向上取整的倍率。默认为0时自动计算。 More...
 
bool inverse [get, set]
 Whether the axis are reversed or not. Invalid in Category axis. 是否反向坐标轴。在类目轴中无效。 More...
 
bool clockwise [get, set]
 Whether the positive position of axis is in clockwise. True for clockwise by default. 刻度增长是否按顺时针,默认顺时针。 More...
 
List< string > data [get, set]
 Category data, available in type: 'Category' axis. 类目数据,在类目轴(type: 'category')中有效。 More...
 
List< Sprite > icons [get, set]
 类目数据对应的图标。 More...
 
AxisLine axisLine [get, set]
 axis Line. 坐标轴轴线。 /// More...
 
AxisName axisName [get, set]
 axis name. 坐标轴名称。 More...
 
AxisTick axisTick [get, set]
 axis tick. 坐标轴刻度。 More...
 
AxisLabel axisLabel [get, set]
 axis label. 坐标轴刻度标签。 More...
 
AxisSplitLine splitLine [get, set]
 axis split line. 坐标轴分割线。 More...
 
AxisSplitArea splitArea [get, set]
 axis split area. 坐标轴分割区域。 More...
 
bool insertDataToHead [get, set]
 Whether to add new data at the head or at the end of the list. 添加新数据时是在列表的头部还是尾部加入。 More...
 
IconStyle iconStyle [get, set]
 图标样式。 More...
 
override bool vertsDirty [get]
 
override bool componentDirty [get]
 
int index [get, set]
 
List< ChartLabelruntimeAxisLabelList [get, set]
 
double runtimeMinValue [get, set]
 the current minimun value. 当前最小值。 More...
 
double runtimeMaxValue [get, set]
 the current maximum value. 当前最大值。 More...
 
float runtimeZeroXOffset [get, set]
 the x offset of zero position. 坐标轴原点在X轴的偏移。 More...
 
float runtimeZeroYOffset [get, set]
 the y offset of zero position. 坐标轴原点在Y轴的偏移。 More...
 
int? runtimeMinLogIndex [get]
 
int? runtimeMaxLogIndex [get]
 
bool runtimeLastCheckInverse [get, set]
 
double runtimeMinMaxRange [get, set]
 
List< string > runtimeData [get]
 
float runtimeScaleWidth [get, set]
 
- Properties inherited from XCharts.ChartComponent
virtual bool vertsDirty [get]
 图表重绘标记。 More...
 
virtual bool componentDirty [get]
 组件重新初始化标记。 More...
 
bool anyDirty [get]
 需要重绘图表或重新初始化组件。 More...
 
Painter painter [get, set]
 
Action refreshComponent [get, set]
 
GameObject gameObject [get, set]
 

Detailed Description

The axis in rectangular coordinate. 直角坐标系的坐标轴组件。

Definition at line 20 of file Axis.cs.

Member Enumeration Documentation

◆ AxisMinMaxType

the type of axis min and max value. 坐标轴最大最小刻度显示类型。

Enumerator
Default 

0 - maximum. 0-最大值。

MinMax 

minimum - maximum. 最小值-最大值。

Custom 

Customize the minimum and maximum. 自定义最小值最大值。

Definition at line 54 of file Axis.cs.

55  {
60  Default,
65  MinMax,
70  Custom
71  }

◆ AxisPosition

the position of axis in grid. 坐标轴在Grid中的位置

Definition at line 76 of file Axis.cs.

77  {
78  Left,
79  Right,
80  Bottom,
81  Top
82  }

◆ AxisType

enum XCharts.Axis.AxisType
strong

the type of axis. 坐标轴类型。

Enumerator
Value 

Numerical axis, suitable for continuous data. 数值轴。适用于连续数据。

Category 

Category axis, suitable for discrete category data. Data should only be set via data for this type. 类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。

Log 

Log axis, suitable for log data. 对数轴。适用于对数数据。

Time 

Time axis, suitable for continuous time series data. 时间轴。适用于连续的时序数据。

Definition at line 26 of file Axis.cs.

27  {
32  Value,
37  Category,
42  Log,
47  Time
48  }

Member Function Documentation

◆ AddData()

void XCharts.Axis.AddData ( string  category)
inline

添加一个类目到类目数据列表

Parameters
category

Definition at line 580 of file Axis.cs.

581  {
582  if (maxCache > 0)
583  {
584  while (m_Data.Count >= maxCache)
585  {
586  m_NeedUpdateFilterData = true;
587  m_Data.RemoveAt(m_InsertDataToHead ? m_Data.Count - 1 : 0);
588  }
589  }
590  if (m_InsertDataToHead) m_Data.Insert(0, category);
591  else m_Data.Add(category);
592  SetAllDirty();
593  }

◆ AddIcon()

void XCharts.Axis.AddIcon ( Sprite  icon)
inline

添加图标

Parameters
icon

Definition at line 613 of file Axis.cs.

614  {
615  if (maxCache > 0)
616  {
617  while (m_Icons.Count > maxCache)
618  {
619  m_Icons.RemoveAt(m_InsertDataToHead ? m_Icons.Count - 1 : 0);
620  }
621  }
622  if (m_InsertDataToHead) m_Icons.Insert(0, icon);
623  else m_Icons.Add(icon);
624  SetAllDirty();
625  }

◆ ClearData()

void XCharts.Axis.ClearData ( )
inline

清空类目数据

Definition at line 528 of file Axis.cs.

529  {
530  m_Data.Clear();
531  m_Icons.Clear();
532  m_RuntimeData.Clear();
533  SetAllDirty();
534  }

◆ GetData() [1/2]

string XCharts.Axis.GetData ( int  index)
inline

获得指定索引的类目数据

Parameters
index
Returns

Definition at line 646 of file Axis.cs.

647  {
648  if (index >= 0 && index < m_Data.Count)
649  return m_Data[index];
650  else
651  return null;
652  }

◆ GetData() [2/2]

string XCharts.Axis.GetData ( int  index,
DataZoom  dataZoom 
)
inline

获得在dataZoom范围内指定索引的类目数据

Parameters
index类目数据索引
dataZoom区域缩放
Returns

Definition at line 660 of file Axis.cs.

661  {
662  var showData = GetDataList(dataZoom);
663  if (index >= 0 && index < showData.Count)
664  return showData[index];
665  else
666  return "";
667  }

◆ IsCategory()

bool XCharts.Axis.IsCategory ( )
inline

是否为类目轴。

Returns

Definition at line 540 of file Axis.cs.

541  {
542  return type == AxisType.Category;
543  }

◆ IsLog()

bool XCharts.Axis.IsLog ( )
inline

是否为对数轴。

Returns

Definition at line 558 of file Axis.cs.

559  {
560  return type == AxisType.Log;
561  }

◆ IsTime()

bool XCharts.Axis.IsTime ( )
inline

是否为时间轴。

Definition at line 566 of file Axis.cs.

567  {
568  return type == AxisType.Time;
569  }

◆ IsValue()

bool XCharts.Axis.IsValue ( )
inline

是否为数值轴。

Returns

Definition at line 549 of file Axis.cs.

550  {
551  return type == AxisType.Value;
552  }

◆ UpdateData()

void XCharts.Axis.UpdateData ( int  index,
string  category 
)
inline

更新类目数据

Parameters
index
category

Definition at line 600 of file Axis.cs.

601  {
602  if (index >= 0 && index < m_Data.Count)
603  {
604  m_Data[index] = category;
605  SetComponentDirty();
606  }
607  }

◆ UpdateIcon()

void XCharts.Axis.UpdateIcon ( int  index,
Sprite  icon 
)
inline

更新图标

Parameters
index
icon

Definition at line 632 of file Axis.cs.

633  {
634  if (index >= 0 && index < m_Icons.Count)
635  {
636  m_Icons[index] = icon;
637  SetComponentDirty();
638  }
639  }

Property Documentation

◆ axisLabel

AxisLabel XCharts.Axis.axisLabel
getset

axis label. 坐标轴刻度标签。

Definition at line 332 of file Axis.cs.

332  {
333  get { return m_AxisLabel; }
334  set { if (value != null) { m_AxisLabel = value; SetComponentDirty(); } }
335  }

◆ axisLine

AxisLine XCharts.Axis.axisLine
getset

axis Line. 坐标轴轴线。 ///

Definition at line 305 of file Axis.cs.

305  {
306  get { return m_AxisLine; }
307  set { if (value != null) { m_AxisLine = value; SetVerticesDirty(); } }
308  }

◆ axisName

AxisName XCharts.Axis.axisName
getset

axis name. 坐标轴名称。

Definition at line 314 of file Axis.cs.

314  {
315  get { return m_AxisName; }
316  set { if (value != null) { m_AxisName = value; SetComponentDirty(); } }
317  }

◆ axisTick

AxisTick XCharts.Axis.axisTick
getset

axis tick. 坐标轴刻度。

Definition at line 323 of file Axis.cs.

323  {
324  get { return m_AxisTick; }
325  set { if (value != null) { m_AxisTick = value; SetVerticesDirty(); } }
326  }

◆ boundaryGap

bool? XCharts.Axis.boundaryGap
getset

The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'. 坐标轴两边是否留白。只对类目轴有效。

Definition at line 220 of file Axis.cs.

220  {
221  get { return IsCategory() ? m_BoundaryGap : false; }
222  set { if (PropertyUtil.SetStruct(ref m_BoundaryGap, value)) SetAllDirty(); }
223  }

◆ ceilRate

int? XCharts.Axis.ceilRate
getset

The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. 最大最小值向上取整的倍率。默认为0时自动计算。

Definition at line 261 of file Axis.cs.

261  {
262  get { return m_CeilRate; }
263  set { if (PropertyUtil.SetStruct(ref m_CeilRate, value < 0 ? 0 : value)) SetAllDirty(); }
264  }

◆ clockwise

bool XCharts.Axis.clockwise
getset

Whether the positive position of axis is in clockwise. True for clockwise by default. 刻度增长是否按顺时针,默认顺时针。

Definition at line 279 of file Axis.cs.

279  {
280  get { return m_Clockwise; }
281  set { if (PropertyUtil.SetStruct(ref m_Clockwise, value)) SetAllDirty(); }
282  }

◆ data

List<string> XCharts.Axis.data
getset

Category data, available in type: 'Category' axis. 类目数据,在类目轴(type: 'category')中有效。

Definition at line 288 of file Axis.cs.

288  {
289  get { return m_Data; }
290  set { if (value != null) { m_Data = value; SetAllDirty(); } }
291  }

◆ gridIndex

int XCharts.Axis.gridIndex
getset

The index of the grid on which the axis are located, by default, is in the first grid. 坐标轴所在的 grid 的索引,默认位于第一个 grid。

Definition at line 148 of file Axis.cs.

148  {
149  get { return m_GridIndex; }
150  set { if (PropertyUtil.SetStruct(ref m_GridIndex, value)) SetAllDirty(); }
151  }

◆ icons

List<Sprite> XCharts.Axis.icons
getset

类目数据对应的图标。

Definition at line 296 of file Axis.cs.

296  {
297  get { return m_Icons; }
298  set { if (value != null) { m_Icons = value; SetAllDirty(); } }
299  }

◆ iconStyle

IconStyle XCharts.Axis.iconStyle
getset

图标样式。

Definition at line 367 of file Axis.cs.

367  {
368  get { return m_IconStyle; }
369  set { if (PropertyUtil.SetClass(ref m_IconStyle, value)) SetAllDirty(); }
370  }

◆ insertDataToHead

bool XCharts.Axis.insertDataToHead
getset

Whether to add new data at the head or at the end of the list. 添加新数据时是在列表的头部还是尾部加入。

Definition at line 359 of file Axis.cs.

359  {
360  get { return m_InsertDataToHead; }
361  set { if (PropertyUtil.SetStruct(ref m_InsertDataToHead, value)) SetAllDirty(); }
362  }

◆ interval

float XCharts.Axis.interval
getset

Compulsively set segmentation interval for axis.This is unavailable for category axis. 强制设置坐标轴分割间隔。无法在类目轴中使用。

Definition at line 211 of file Axis.cs.

211  {
212  get { return m_Interval; }
213  set { if (PropertyUtil.SetStruct(ref m_Interval, value)) SetAllDirty(); }
214  }

◆ inverse

bool XCharts.Axis.inverse
getset

Whether the axis are reversed or not. Invalid in Category axis. 是否反向坐标轴。在类目轴中无效。

Definition at line 270 of file Axis.cs.

270  {
271  get { return m_Inverse; }
272  set { if (m_Type == AxisType.Value && PropertyUtil.SetStruct(ref m_Inverse, value)) SetAllDirty(); }
273  }

◆ logBase

float XCharts.Axis.logBase
getset

Base of logarithm, which is valid only for numeric axes with type: 'Log'. 对数轴的底数,只在对数轴(type:'Log')中有效。

Definition at line 229 of file Axis.cs.

229  {
230  get { return m_LogBase; }
231  set
232  {
233  if (value <= 0 || value == 1) value = 10;
234  if (PropertyUtil.SetStruct(ref m_LogBase, value)) SetAllDirty();
235  }
236  }

◆ logBaseE

bool XCharts.Axis.logBaseE
getset

On the log axis, if base e is the natural number, and is true, logBase fails. 对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。

Definition at line 242 of file Axis.cs.

242  {
243  get { return m_LogBaseE; }
244  set { if (PropertyUtil.SetStruct(ref m_LogBaseE, value)) SetAllDirty(); }
245  }

◆ max

float XCharts.Axis.max
getset

The maximum value of axis.Valid when minMaxType is Custom 设定的坐标轴刻度最大值,当minMaxType为Custom时有效。

Definition at line 193 of file Axis.cs.

193  {
194  get { return m_Max; }
195  set { if (PropertyUtil.SetStruct(ref m_Max, value)) SetAllDirty(); }
196  }

◆ maxCache

int? XCharts.Axis.maxCache
getset

The max number of axis data cache. The first data will be remove when the size of axis data is larger then maxCache. 可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。

Definition at line 252 of file Axis.cs.

252  {
253  get { return m_MaxCache; }
254  set { if (PropertyUtil.SetStruct(ref m_MaxCache, value < 0 ? 0 : value)) SetAllDirty(); }
255  }

◆ min

float XCharts.Axis.min
getset

The minimun value of axis.Valid when minMaxType is Custom 设定的坐标轴刻度最小值,当minMaxType为Custom时有效。

Definition at line 184 of file Axis.cs.

184  {
185  get { return m_Min; }
186  set { if (PropertyUtil.SetStruct(ref m_Min, value)) SetAllDirty(); }
187  }

◆ minMaxType

AxisMinMaxType XCharts.Axis.minMaxType
getset

the type of axis minmax. 坐标轴刻度最大最小值显示类型。

Definition at line 139 of file Axis.cs.

139  {
140  get { return m_MinMaxType; }
141  set { if (PropertyUtil.SetStruct(ref m_MinMaxType, value)) SetAllDirty(); }
142  }

◆ offset

float XCharts.Axis.offset
getset

the offset of axis from the default position. Useful when the same position has multiple axes. 坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。

Definition at line 175 of file Axis.cs.

175  {
176  get { return m_Offset; }
177  set { if (PropertyUtil.SetStruct(ref m_Offset, value)) SetAllDirty(); }
178  }

◆ polarIndex

int XCharts.Axis.polarIndex
getset

The index of the polar on which the axis are located, by default, is in the first polar. 坐标轴所在的 ploar 的索引,默认位于第一个 polar。

Definition at line 157 of file Axis.cs.

157  {
158  get { return m_PolarIndex; }
159  set { if (PropertyUtil.SetStruct(ref m_PolarIndex, value)) SetAllDirty(); }
160  }

◆ position

AxisPosition XCharts.Axis.position
getset

the position of axis in grid. 坐标轴在Grid中的位置。

Definition at line 166 of file Axis.cs.

166  {
167  get { return m_Position; }
168  set { if (PropertyUtil.SetStruct(ref m_Position, value)) SetAllDirty(); }
169  }

◆ runtimeMaxValue

double XCharts.Axis.runtimeMaxValue
getset

the current maximum value. 当前最大值。

Definition at line 416 of file Axis.cs.

416  {
417  get { return m_RuntimeMaxValue; }
418  internal set
419  {
420  m_RuntimeMaxValue = value;
421  m_RuntimeLastMaxValue = value;
422  m_RuntimeMaxValueUpdateTime = Time.time;
423  m_RuntimeMaxValueChanged = false;
424  }
425  }

◆ runtimeMinValue

double XCharts.Axis.runtimeMinValue
getset

the current minimun value. 当前最小值。

Definition at line 401 of file Axis.cs.

401  {
402  get { return m_RuntimeMinValue; }
403  internal set
404  {
405  m_RuntimeMinValue = value;
406  m_RuntimeLastMinValue = value;
407  m_RuntimeMinValueUpdateTime = Time.time;
408  m_RuntimeMinValueChanged = true;
409  }
410  }

◆ runtimeZeroXOffset

float XCharts.Axis.runtimeZeroXOffset
getset

the x offset of zero position. 坐标轴原点在X轴的偏移。

Definition at line 430 of file Axis.cs.

430 { get; internal set; }

◆ runtimeZeroYOffset

float XCharts.Axis.runtimeZeroYOffset
getset

the y offset of zero position. 坐标轴原点在Y轴的偏移。

Definition at line 435 of file Axis.cs.

435 { get; internal set; }

◆ show

bool XCharts.Axis.show
getset

Whether to show axis. 是否显示坐标轴。

Definition at line 121 of file Axis.cs.

121  {
122  get { return m_Show; }
123  set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetAllDirty(); }
124  }

◆ splitArea

AxisSplitArea XCharts.Axis.splitArea
getset

axis split area. 坐标轴分割区域。

Definition at line 350 of file Axis.cs.

350  {
351  get { return m_SplitArea; }
352  set { if (value != null) { m_SplitArea = value; SetVerticesDirty(); } }
353  }

◆ splitLine

AxisSplitLine XCharts.Axis.splitLine
getset

axis split line. 坐标轴分割线。

Definition at line 341 of file Axis.cs.

341  {
342  get { return m_SplitLine; }
343  set { if (value != null) { m_SplitLine = value; SetVerticesDirty(); } }
344  }

◆ splitNumber

int XCharts.Axis.splitNumber
getset

Number of segments that the axis is split into. 坐标轴的分割段数。

Definition at line 202 of file Axis.cs.

202  {
203  get { return m_SplitNumber; }
204  set { if (PropertyUtil.SetStruct(ref m_SplitNumber, value)) SetAllDirty(); }
205  }

◆ type

AxisType XCharts.Axis.type
getset

the type of axis. 坐标轴类型。

Definition at line 130 of file Axis.cs.

130  {
131  get { return m_Type; }
132  set { if (PropertyUtil.SetStruct(ref m_Type, value)) SetAllDirty(); }
133  }

The documentation for this class was generated from the following file:
XCharts.Axis.maxCache
int? maxCache
The max number of axis data cache. The first data will be remove when the size of axis data is larger...
Definition: Axis.cs:252
XCharts.SerieType.Custom
@ Custom
自定义。
XCharts.Axis.type
AxisType type
the type of axis. 坐标轴类型。
Definition: Axis.cs:130
XCharts.Theme.Default
@ Default
默认主题。
XCharts.Axis.IsCategory
bool IsCategory()
是否为类目轴。
Definition: Axis.cs:540
XCharts.Axis.AxisType
AxisType
the type of axis. 坐标轴类型。
Definition: Axis.cs:26