mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-14 20:00:09 +00:00
调整中英文注释的分隔符为||
This commit is contained in:
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// the animation info.
|
||||
/// |动画配置参数。
|
||||
/// ||动画配置参数。
|
||||
/// </summary>
|
||||
[Since("v3.8.0")]
|
||||
[System.Serializable]
|
||||
@@ -20,50 +20,50 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// whether enable animation.
|
||||
/// |是否开启动画效果。
|
||||
/// ||是否开启动画效果。
|
||||
/// </summary>
|
||||
public bool enable { get { return m_Enable; } set { m_Enable = value; } }
|
||||
/// <summary>
|
||||
/// whether enable reverse animation.
|
||||
/// |是否开启反向动画效果。
|
||||
/// ||是否开启反向动画效果。
|
||||
/// </summary>
|
||||
public bool reverse { get { return m_Reverse; } set { m_Reverse = value; } }
|
||||
/// <summary>
|
||||
/// the delay time before animation start.
|
||||
/// |动画开始前的延迟时间。
|
||||
/// ||动画开始前的延迟时间。
|
||||
/// </summary>
|
||||
public float delay { get { return m_Delay; } set { m_Delay = value; } }
|
||||
/// <summary>
|
||||
/// the duration of animation.
|
||||
/// |动画的时长。
|
||||
/// ||动画的时长。
|
||||
/// </summary>
|
||||
public float duration { get { return m_Duration; } set { m_Duration = value; } }
|
||||
|
||||
/// <summary>
|
||||
/// the callback function of animation start.
|
||||
/// |动画开始的回调。
|
||||
/// ||动画开始的回调。
|
||||
/// </summary>
|
||||
public Action OnAnimationStart { get; set; }
|
||||
/// <summary>
|
||||
/// the callback function of animation end.
|
||||
/// |动画结束的回调。
|
||||
/// ||动画结束的回调。
|
||||
/// </summary>
|
||||
public Action OnAnimationEnd { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// the delegate function of animation delay.
|
||||
/// |动画延迟的委托函数。
|
||||
/// ||动画延迟的委托函数。
|
||||
/// </summary>
|
||||
public AnimationDelayFunction delayFunction { get; set; }
|
||||
/// <summary>
|
||||
/// the delegate function of animation duration.
|
||||
/// |动画时长的委托函数。
|
||||
/// ||动画时长的委托函数。
|
||||
/// </summary>
|
||||
public AnimationDurationFunction durationFunction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Reset animation.
|
||||
/// |重置动画。
|
||||
/// ||重置动画。
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
@@ -86,7 +86,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Start animation.
|
||||
/// |开始动画。
|
||||
/// ||开始动画。
|
||||
/// </summary>
|
||||
/// <param name="reset">是否重置上一次的参数</param>
|
||||
public void Start(bool reset = true)
|
||||
@@ -119,7 +119,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Pause animation.
|
||||
/// |暂停动画。
|
||||
/// ||暂停动画。
|
||||
/// </summary>
|
||||
public void Pause()
|
||||
{
|
||||
@@ -130,7 +130,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Resume animation.
|
||||
/// |恢复动画。
|
||||
/// ||恢复动画。
|
||||
/// </summary>
|
||||
public void Resume()
|
||||
{
|
||||
@@ -141,7 +141,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// End animation.
|
||||
/// |结束动画。
|
||||
/// ||结束动画。
|
||||
/// </summary>
|
||||
public void End()
|
||||
{
|
||||
@@ -159,7 +159,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Initialize animation.
|
||||
/// |初始化动画。
|
||||
/// ||初始化动画。
|
||||
/// </summary>
|
||||
/// <param name="curr">当前进度</param>
|
||||
/// <param name="dest">目标进度</param>
|
||||
@@ -187,7 +187,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether animation is finish.
|
||||
/// |动画是否结束。
|
||||
/// ||动画是否结束。
|
||||
/// </summary>
|
||||
public bool IsFinish()
|
||||
{
|
||||
@@ -201,7 +201,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether animation is in delay.
|
||||
/// |动画是否在延迟中。
|
||||
/// ||动画是否在延迟中。
|
||||
/// </summary>
|
||||
public bool IsInDelay()
|
||||
{
|
||||
@@ -213,7 +213,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether animation is in index delay.
|
||||
/// |动画是否在索引延迟中。
|
||||
/// ||动画是否在索引延迟中。
|
||||
/// </summary>
|
||||
/// <param name="dataIndex"></param>
|
||||
/// <returns></returns>
|
||||
@@ -227,7 +227,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Get animation delay.
|
||||
/// |获取动画延迟。
|
||||
/// ||获取动画延迟。
|
||||
/// </summary>
|
||||
/// <param name="dataIndex"></param>
|
||||
/// <returns></returns>
|
||||
@@ -381,7 +381,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Fade in animation.
|
||||
/// |淡入动画。
|
||||
/// ||淡入动画。
|
||||
/// </summary>
|
||||
[Since("v3.8.0")]
|
||||
[System.Serializable]
|
||||
@@ -391,7 +391,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Fade out animation.
|
||||
/// |淡出动画。
|
||||
/// ||淡出动画。
|
||||
/// </summary>
|
||||
[Since("v3.8.0")]
|
||||
[System.Serializable]
|
||||
@@ -401,7 +401,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Data change animation.
|
||||
/// |数据变更动画。
|
||||
/// ||数据变更动画。
|
||||
/// </summary>
|
||||
[Since("v3.8.0")]
|
||||
[System.Serializable]
|
||||
@@ -411,7 +411,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Data addition animation.
|
||||
/// |数据新增动画。
|
||||
/// ||数据新增动画。
|
||||
/// </summary>
|
||||
[Since("v3.8.0")]
|
||||
[System.Serializable]
|
||||
@@ -421,7 +421,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Data hiding animation.
|
||||
/// |数据隐藏动画。
|
||||
/// ||数据隐藏动画。
|
||||
/// </summary>
|
||||
[Since("v3.8.0")]
|
||||
[System.Serializable]
|
||||
@@ -431,7 +431,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Interactive animation of charts.
|
||||
/// |交互动画。
|
||||
/// ||交互动画。
|
||||
/// </summary>
|
||||
[Since("v3.8.0")]
|
||||
[System.Serializable]
|
||||
@@ -443,17 +443,17 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the mlvalue of width.
|
||||
/// |宽度的多样式数值。
|
||||
/// ||宽度的多样式数值。
|
||||
/// </summary>
|
||||
public MLValue width { get { return m_Width; } set { m_Width = value; } }
|
||||
/// <summary>
|
||||
/// the mlvalue of radius.
|
||||
/// |半径的多样式数值。
|
||||
/// ||半径的多样式数值。
|
||||
/// </summary>
|
||||
public MLValue radius { get { return m_Radius; } set { m_Radius = value; } }
|
||||
/// <summary>
|
||||
/// the mlvalue of offset. Such as the offset of the pie chart when the sector is selected.
|
||||
/// |交互的多样式数值。如饼图的扇形选中时的偏移。
|
||||
/// ||交互的多样式数值。如饼图的扇形选中时的偏移。
|
||||
/// </summary>
|
||||
public MLValue offset { get { return m_Offset; } set { m_Offset = value; } }
|
||||
|
||||
|
||||
@@ -8,32 +8,32 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// he default. An animation playback mode will be selected according to the actual situation.
|
||||
/// |默认。内部会根据实际情况选择一种动画播放方式。
|
||||
/// ||默认。内部会根据实际情况选择一种动画播放方式。
|
||||
/// </summary>
|
||||
Default,
|
||||
/// <summary>
|
||||
/// Play the animation from left to right.
|
||||
/// |从左往右播放动画。
|
||||
/// ||从左往右播放动画。
|
||||
/// </summary>
|
||||
LeftToRight,
|
||||
/// <summary>
|
||||
/// Play the animation from bottom to top.
|
||||
/// |从下往上播放动画。
|
||||
/// ||从下往上播放动画。
|
||||
/// </summary>
|
||||
BottomToTop,
|
||||
/// <summary>
|
||||
/// Play animations from the inside out.
|
||||
/// |由内到外播放动画。
|
||||
/// ||由内到外播放动画。
|
||||
/// </summary>
|
||||
InsideOut,
|
||||
/// <summary>
|
||||
/// Play the animation along the path.
|
||||
/// |沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。
|
||||
/// ||沿着路径播放动画。当折线图从左到右无序或有折返时,可以使用该模式。
|
||||
/// </summary>
|
||||
AlongPath,
|
||||
/// <summary>
|
||||
/// Play the animation clockwise.
|
||||
/// |顺时针播放动画。
|
||||
/// ||顺时针播放动画。
|
||||
/// </summary>
|
||||
Clockwise,
|
||||
}
|
||||
@@ -45,7 +45,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the animation of serie. support animation type: fadeIn, fadeOut, change, addition.
|
||||
/// |动画组件,用于控制图表的动画播放。支持配置五种动画表现:FadeIn(渐入动画),FadeOut(渐出动画),Change(变更动画),Addition(新增动画),Interaction(交互动画)。
|
||||
/// ||动画组件,用于控制图表的动画播放。支持配置五种动画表现:FadeIn(渐入动画),FadeOut(渐出动画),Change(变更动画),Addition(新增动画),Interaction(交互动画)。
|
||||
/// 按作用的对象可以分为两类:SerieAnimation(系列动画)和DataAnimation(数据动画)。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
@@ -79,53 +79,53 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to enable animation.
|
||||
/// |是否开启动画效果。
|
||||
/// ||是否开启动画效果。
|
||||
/// </summary>
|
||||
public bool enable { get { return m_Enable; } set { m_Enable = value; } }
|
||||
/// <summary>
|
||||
/// The type of animation.
|
||||
/// |动画类型。
|
||||
/// ||动画类型。
|
||||
/// </summary>
|
||||
public AnimationType type { get { return m_Type; } set { m_Type = value; } }
|
||||
/// <summary>
|
||||
/// Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold.
|
||||
/// |是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。
|
||||
/// ||是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。
|
||||
/// </summary>
|
||||
public int threshold { get { return m_Threshold; } set { m_Threshold = value; } }
|
||||
/// <summary>
|
||||
/// Animation updates independently of Time.timeScale.
|
||||
/// |动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。
|
||||
/// ||动画是否受TimeScaled的影响。默认为 false 受TimeScaled的影响。
|
||||
/// </summary>
|
||||
public bool unscaledTime { get { return m_UnscaledTime; } set { m_UnscaledTime = value; } }
|
||||
/// <summary>
|
||||
/// Fade in animation configuration.
|
||||
/// |渐入动画配置。
|
||||
/// ||渐入动画配置。
|
||||
/// </summary>
|
||||
public AnimationFadeIn fadeIn { get { return m_FadeIn; } }
|
||||
/// <summary>
|
||||
/// Fade out animation configuration.
|
||||
/// |渐出动画配置。
|
||||
/// ||渐出动画配置。
|
||||
/// </summary>
|
||||
public AnimationFadeOut fadeOut { get { return m_FadeOut; } }
|
||||
/// <summary>
|
||||
/// Update data animation configuration.
|
||||
/// |数据变更动画配置。
|
||||
/// ||数据变更动画配置。
|
||||
/// </summary>
|
||||
public AnimationChange change { get { return m_Change; } }
|
||||
/// <summary>
|
||||
/// Add data animation configuration.
|
||||
/// |数据新增动画配置。
|
||||
/// ||数据新增动画配置。
|
||||
/// </summary>
|
||||
public AnimationAddition addition { get { return m_Addition; } }
|
||||
/// <summary>
|
||||
/// Data hiding animation configuration.
|
||||
/// |数据隐藏动画配置。
|
||||
/// ||数据隐藏动画配置。
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public AnimationHiding hiding { get { return m_Hiding; } }
|
||||
/// <summary>
|
||||
/// Interaction animation configuration.
|
||||
/// |交互动画配置。
|
||||
/// ||交互动画配置。
|
||||
/// </summary>
|
||||
public AnimationInteraction interaction { get { return m_Interaction; } }
|
||||
|
||||
@@ -150,7 +150,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The actived animation.
|
||||
/// |当前激活的动画。
|
||||
/// ||当前激活的动画。
|
||||
/// </summary>
|
||||
public AnimationInfo activedAnimation
|
||||
{
|
||||
@@ -166,7 +166,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Start fadein animation.
|
||||
/// |开始渐入动画。
|
||||
/// ||开始渐入动画。
|
||||
/// </summary>
|
||||
public void FadeIn()
|
||||
{
|
||||
@@ -176,7 +176,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Restart the actived animation.
|
||||
/// |重启当前激活的动画。
|
||||
/// ||重启当前激活的动画。
|
||||
/// </summary>
|
||||
public void Restart()
|
||||
{
|
||||
@@ -190,7 +190,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Start fadeout animation.
|
||||
/// |开始渐出动画。
|
||||
/// ||开始渐出动画。
|
||||
/// </summary>
|
||||
public void FadeOut()
|
||||
{
|
||||
@@ -199,7 +199,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Start additon animation.
|
||||
/// |开始数据新增动画。
|
||||
/// ||开始数据新增动画。
|
||||
/// </summary>
|
||||
public void Addition()
|
||||
{
|
||||
@@ -212,7 +212,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Pause all animations.
|
||||
/// |暂停所有动画。
|
||||
/// ||暂停所有动画。
|
||||
/// </summary>
|
||||
public void Pause()
|
||||
{
|
||||
@@ -224,7 +224,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Resume all animations.
|
||||
/// |恢复所有动画。
|
||||
/// ||恢复所有动画。
|
||||
/// </summary>
|
||||
public void Resume()
|
||||
{
|
||||
@@ -247,7 +247,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Initialize animation configuration.
|
||||
/// |初始化动画配置。
|
||||
/// ||初始化动画配置。
|
||||
/// </summary>
|
||||
/// <param name="curr">当前进度</param>
|
||||
/// <param name="dest">目标进度</param>
|
||||
@@ -276,7 +276,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Initialize animation configuration.
|
||||
/// |初始化动画配置。
|
||||
/// ||初始化动画配置。
|
||||
/// </summary>
|
||||
/// <param name="paths">路径坐标点列表</param>
|
||||
/// <param name="isY">是Y轴还是X轴</param>
|
||||
@@ -377,7 +377,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// whther animaiton is data animation. BottomToTop and InsideOut are data animation.
|
||||
/// |是否为数据动画。BottomToTop和InsideOut类型的为数据动画。
|
||||
/// ||是否为数据动画。BottomToTop和InsideOut类型的为数据动画。
|
||||
/// </summary>
|
||||
public bool IsDataAnimation()
|
||||
{
|
||||
@@ -386,7 +386,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// whther animaiton is serie animation. LeftToRight, AlongPath and Clockwise are serie animation.
|
||||
/// |是否为系列动画。LeftToRight、AlongPath和Clockwise类型的为系列动画。
|
||||
/// ||是否为系列动画。LeftToRight、AlongPath和Clockwise类型的为系列动画。
|
||||
/// </summary>
|
||||
public bool IsSerieAnimation()
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Angle axis of Polar Coordinate.
|
||||
/// |极坐标系的角度轴。
|
||||
/// ||极坐标系的角度轴。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[RequireChartComponent(typeof(PolarCoord))]
|
||||
@@ -16,7 +16,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Starting angle of axis. 0 degrees by default, standing for right position of center.
|
||||
/// |起始刻度的角度,默认为 0 度,即圆心的正右方。
|
||||
/// ||起始刻度的角度,默认为 0 度,即圆心的正右方。
|
||||
/// </summary>
|
||||
public float startAngle
|
||||
{
|
||||
|
||||
@@ -6,69 +6,69 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The axis in rectangular coordinate.
|
||||
/// |直角坐标系的坐标轴组件。
|
||||
/// ||直角坐标系的坐标轴组件。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class Axis : MainComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// the type of axis.
|
||||
/// |坐标轴类型。
|
||||
/// ||坐标轴类型。
|
||||
/// </summary>
|
||||
public enum AxisType
|
||||
{
|
||||
/// <summary>
|
||||
/// Numerical axis, suitable for continuous data.
|
||||
/// |数值轴。适用于连续数据。
|
||||
/// ||数值轴。适用于连续数据。
|
||||
/// </summary>
|
||||
Value,
|
||||
/// <summary>
|
||||
/// Category axis, suitable for discrete category data. Data should only be set via data for this type.
|
||||
/// |类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。serie的数据第0维数据对应坐标轴data的index。
|
||||
/// ||类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。serie的数据第0维数据对应坐标轴data的index。
|
||||
/// </summary>
|
||||
Category,
|
||||
/// <summary>
|
||||
/// Log axis, suitable for log data.
|
||||
/// |对数轴。适用于对数数据。
|
||||
/// ||对数轴。适用于对数数据。
|
||||
/// </summary>
|
||||
Log,
|
||||
/// <summary>
|
||||
/// Time axis, suitable for continuous time series data.
|
||||
/// |时间轴。适用于连续的时序数据。
|
||||
/// ||时间轴。适用于连续的时序数据。
|
||||
/// </summary>
|
||||
Time
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// the type of axis min and max value.
|
||||
/// |坐标轴最大最小刻度显示类型。
|
||||
/// ||坐标轴最大最小刻度显示类型。
|
||||
/// </summary>
|
||||
public enum AxisMinMaxType
|
||||
{
|
||||
/// <summary>
|
||||
/// 0 - maximum.
|
||||
/// |0-最大值。
|
||||
/// ||0-最大值。
|
||||
/// </summary>
|
||||
Default,
|
||||
/// <summary>
|
||||
/// minimum - maximum.
|
||||
/// |最小值-最大值。
|
||||
/// ||最小值-最大值。
|
||||
/// </summary>
|
||||
MinMax,
|
||||
/// <summary>
|
||||
/// Customize the minimum and maximum.
|
||||
/// |自定义最小值最大值。
|
||||
/// ||自定义最小值最大值。
|
||||
/// </summary>
|
||||
Custom,
|
||||
/// <summary>
|
||||
/// [since("v3.7.0")]minimum - maximum, automatically calculate the appropriate values.
|
||||
/// |[since("v3.7.0")]最小值-最大值。自动计算合适的值。
|
||||
/// ||[since("v3.7.0")]最小值-最大值。自动计算合适的值。
|
||||
/// </summary>
|
||||
MinMaxAuto,
|
||||
}
|
||||
/// <summary>
|
||||
/// the position of axis in grid.
|
||||
/// |坐标轴在Grid中的位置
|
||||
/// ||坐标轴在Grid中的位置
|
||||
/// </summary>
|
||||
public enum AxisPosition
|
||||
{
|
||||
@@ -114,7 +114,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show axis.
|
||||
/// |是否显示坐标轴。
|
||||
/// ||是否显示坐标轴。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -123,7 +123,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the type of axis.
|
||||
/// |坐标轴类型。
|
||||
/// ||坐标轴类型。
|
||||
/// </summary>
|
||||
public AxisType type
|
||||
{
|
||||
@@ -132,7 +132,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the type of axis minmax.
|
||||
/// |坐标轴刻度最大最小值显示类型。
|
||||
/// ||坐标轴刻度最大最小值显示类型。
|
||||
/// </summary>
|
||||
public AxisMinMaxType minMaxType
|
||||
{
|
||||
@@ -141,7 +141,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The index of the grid on which the axis are located, by default, is in the first grid.
|
||||
/// |坐标轴所在的 grid 的索引,默认位于第一个 grid。
|
||||
/// ||坐标轴所在的 grid 的索引,默认位于第一个 grid。
|
||||
/// </summary>
|
||||
public int gridIndex
|
||||
{
|
||||
@@ -150,7 +150,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The index of the polar on which the axis are located, by default, is in the first polar.
|
||||
/// |坐标轴所在的 ploar 的索引,默认位于第一个 polar。
|
||||
/// ||坐标轴所在的 ploar 的索引,默认位于第一个 polar。
|
||||
/// </summary>
|
||||
public int polarIndex
|
||||
{
|
||||
@@ -159,7 +159,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The index of the parallel on which the axis are located, by default, is in the first parallel.
|
||||
/// |坐标轴所在的 parallel 的索引,默认位于第一个 parallel。
|
||||
/// ||坐标轴所在的 parallel 的索引,默认位于第一个 parallel。
|
||||
/// </summary>
|
||||
public int parallelIndex
|
||||
{
|
||||
@@ -168,7 +168,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the position of axis in grid.
|
||||
/// |坐标轴在Grid中的位置。
|
||||
/// ||坐标轴在Grid中的位置。
|
||||
/// </summary>
|
||||
public AxisPosition position
|
||||
{
|
||||
@@ -177,7 +177,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the offset of axis from the default position. Useful when the same position has multiple axes.
|
||||
/// |坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。
|
||||
/// ||坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。
|
||||
/// </summary>
|
||||
public float offset
|
||||
{
|
||||
@@ -186,7 +186,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The minimun value of axis.Valid when `minMaxType` is `Custom`
|
||||
/// |设定的坐标轴刻度最小值,当minMaxType为Custom时有效。
|
||||
/// ||设定的坐标轴刻度最小值,当minMaxType为Custom时有效。
|
||||
/// </summary>
|
||||
public double min
|
||||
{
|
||||
@@ -195,7 +195,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The maximum value of axis.Valid when `minMaxType` is `Custom`
|
||||
/// |设定的坐标轴刻度最大值,当minMaxType为Custom时有效。
|
||||
/// ||设定的坐标轴刻度最大值,当minMaxType为Custom时有效。
|
||||
/// </summary>
|
||||
public double max
|
||||
{
|
||||
@@ -204,7 +204,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Number of segments that the axis is split into.
|
||||
/// |坐标轴的期望的分割段数。默认为0表示自动分割。
|
||||
/// ||坐标轴的期望的分割段数。默认为0表示自动分割。
|
||||
/// </summary>
|
||||
public int splitNumber
|
||||
{
|
||||
@@ -213,7 +213,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Compulsively set segmentation interval for axis.This is unavailable for category axis.
|
||||
/// |强制设置坐标轴分割间隔。无法在类目轴中使用。
|
||||
/// ||强制设置坐标轴分割间隔。无法在类目轴中使用。
|
||||
/// </summary>
|
||||
public double interval
|
||||
{
|
||||
@@ -222,7 +222,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'.
|
||||
/// |坐标轴两边是否留白。只对类目轴有效。
|
||||
/// ||坐标轴两边是否留白。只对类目轴有效。
|
||||
/// </summary>
|
||||
public bool boundaryGap
|
||||
{
|
||||
@@ -231,7 +231,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Base of logarithm, which is valid only for numeric axes with type: 'Log'.
|
||||
/// |对数轴的底数,只在对数轴(type:'Log')中有效。
|
||||
/// ||对数轴的底数,只在对数轴(type:'Log')中有效。
|
||||
/// </summary>
|
||||
public float logBase
|
||||
{
|
||||
@@ -244,7 +244,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// On the log axis, if base e is the natural number, and is true, logBase fails.
|
||||
/// |对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。
|
||||
/// ||对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。
|
||||
/// </summary>
|
||||
public bool logBaseE
|
||||
{
|
||||
@@ -253,8 +253,8 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// 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时超过指定值会移除旧数据再插入新数据。
|
||||
/// ||The first data will be remove when the size of axis data is larger then maxCache.
|
||||
/// ||可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。
|
||||
/// </summary>
|
||||
public int maxCache
|
||||
{
|
||||
@@ -263,7 +263,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated.
|
||||
/// |最大最小值向上取整的倍率。默认为0时自动计算。
|
||||
/// ||最大最小值向上取整的倍率。默认为0时自动计算。
|
||||
/// </summary>
|
||||
public double ceilRate
|
||||
{
|
||||
@@ -272,7 +272,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the axis are reversed or not. Invalid in `Category` axis.
|
||||
/// |是否反向坐标轴。在类目轴中无效。
|
||||
/// ||是否反向坐标轴。在类目轴中无效。
|
||||
/// </summary>
|
||||
public bool inverse
|
||||
{
|
||||
@@ -281,7 +281,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the positive position of axis is in clockwise. True for clockwise by default.
|
||||
/// |刻度增长是否按顺时针,默认顺时针。
|
||||
/// ||刻度增长是否按顺时针,默认顺时针。
|
||||
/// </summary>
|
||||
public bool clockwise
|
||||
{
|
||||
@@ -290,7 +290,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Category data, available in type: 'Category' axis.
|
||||
/// |类目数据,在类目轴(type: 'category')中有效。
|
||||
/// ||类目数据,在类目轴(type: 'category')中有效。
|
||||
/// </summary>
|
||||
public List<string> data
|
||||
{
|
||||
@@ -307,7 +307,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// axis Line.
|
||||
/// |坐标轴轴线。
|
||||
/// ||坐标轴轴线。
|
||||
/// </summary>
|
||||
public AxisLine axisLine
|
||||
{
|
||||
@@ -316,7 +316,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// axis name.
|
||||
/// |坐标轴名称。
|
||||
/// ||坐标轴名称。
|
||||
/// </summary>
|
||||
public AxisName axisName
|
||||
{
|
||||
@@ -325,7 +325,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// axis tick.
|
||||
/// |坐标轴刻度。
|
||||
/// ||坐标轴刻度。
|
||||
/// </summary>
|
||||
public AxisTick axisTick
|
||||
{
|
||||
@@ -334,7 +334,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// axis label.
|
||||
/// |坐标轴刻度标签。
|
||||
/// ||坐标轴刻度标签。
|
||||
/// </summary>
|
||||
public AxisLabel axisLabel
|
||||
{
|
||||
@@ -343,7 +343,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// axis split line.
|
||||
/// |坐标轴分割线。
|
||||
/// ||坐标轴分割线。
|
||||
/// </summary>
|
||||
public AxisSplitLine splitLine
|
||||
{
|
||||
@@ -352,7 +352,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// axis split area.
|
||||
/// |坐标轴分割区域。
|
||||
/// ||坐标轴分割区域。
|
||||
/// </summary>
|
||||
public AxisSplitArea splitArea
|
||||
{
|
||||
@@ -361,7 +361,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// axis minor tick.
|
||||
/// |坐标轴次刻度。
|
||||
/// ||坐标轴次刻度。
|
||||
/// </summary>
|
||||
public AxisMinorTick minorTick
|
||||
{
|
||||
@@ -370,7 +370,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// axis minor split line.
|
||||
/// |坐标轴次分割线。
|
||||
/// ||坐标轴次分割线。
|
||||
/// </summary>
|
||||
public AxisMinorSplitLine minorSplitLine
|
||||
{
|
||||
@@ -379,7 +379,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Style of axis tooltip indicator label.
|
||||
/// |指示器文本的样式。Tooltip为Cross时使用。
|
||||
/// ||指示器文本的样式。Tooltip为Cross时使用。
|
||||
/// </summary>
|
||||
public LabelStyle indicatorLabel
|
||||
{
|
||||
@@ -388,7 +388,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to add new data at the head or at the end of the list.
|
||||
/// |添加新数据时是在列表的头部还是尾部加入。
|
||||
/// ||添加新数据时是在列表的头部还是尾部加入。
|
||||
/// </summary>
|
||||
public bool insertDataToHead
|
||||
{
|
||||
|
||||
@@ -32,23 +32,23 @@ namespace XCharts.Runtime
|
||||
public float top;
|
||||
/// <summary>
|
||||
/// the current minimun value.
|
||||
/// |当前最小值。
|
||||
/// ||当前最小值。
|
||||
/// </summary>
|
||||
public double minValue;
|
||||
/// <summary>
|
||||
/// the current maximum value.
|
||||
/// |当前最大值。
|
||||
/// ||当前最大值。
|
||||
/// </summary>
|
||||
public double maxValue;
|
||||
/// <summary>
|
||||
/// the offset of zero position.
|
||||
/// |坐标轴原点在坐标轴的偏移。
|
||||
/// ||坐标轴原点在坐标轴的偏移。
|
||||
/// </summary>
|
||||
public float offset;
|
||||
public double minMaxRange;
|
||||
/// <summary>
|
||||
/// the tick value of value axis.
|
||||
/// |数值轴时每个tick的数值。
|
||||
/// ||数值轴时每个tick的数值。
|
||||
/// </summary>
|
||||
public double tickValue;
|
||||
public float scaleWidth;
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Settings related to axis label.
|
||||
/// |坐标轴刻度标签的相关设置。
|
||||
/// ||坐标轴刻度标签的相关设置。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class AxisLabel : LabelStyle
|
||||
@@ -21,7 +21,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The display interval of the axis label.
|
||||
/// |坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
|
||||
/// ||坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
|
||||
/// </summary>
|
||||
public int interval
|
||||
{
|
||||
@@ -30,7 +30,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Set this to true so the axis labels face the inside direction.
|
||||
/// |刻度标签是否朝内,默认朝外。
|
||||
/// ||刻度标签是否朝内,默认朝外。
|
||||
/// </summary>
|
||||
public bool inside
|
||||
{
|
||||
@@ -39,7 +39,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Show negative number as positive number.
|
||||
/// |将负数数值显示为正数。一般和`Serie`的`showAsPositiveNumber`配合使用。
|
||||
/// ||将负数数值显示为正数。一般和`Serie`的`showAsPositiveNumber`配合使用。
|
||||
/// </summary>
|
||||
public bool showAsPositiveNumber
|
||||
{
|
||||
@@ -57,7 +57,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to display the first label.
|
||||
/// |是否显示第一个文本。
|
||||
/// ||是否显示第一个文本。
|
||||
/// </summary>
|
||||
public bool showStartLabel
|
||||
{
|
||||
@@ -66,7 +66,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to display the last label.
|
||||
/// |是否显示最后一个文本。
|
||||
/// ||是否显示最后一个文本。
|
||||
/// </summary>
|
||||
public bool showEndLabel
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Settings related to axis line.
|
||||
/// |坐标轴轴线。
|
||||
/// ||坐标轴轴线。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class AxisLine : BaseLine
|
||||
@@ -15,7 +15,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// When mutiple axes exists, this option can be used to specify which axis can be "onZero" to.
|
||||
/// |X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。
|
||||
/// ||X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。
|
||||
/// </summary>
|
||||
public bool onZero
|
||||
{
|
||||
@@ -24,7 +24,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to show the arrow symbol of axis.
|
||||
/// |是否显示箭头。
|
||||
/// ||是否显示箭头。
|
||||
/// </summary>
|
||||
public bool showArrow
|
||||
{
|
||||
@@ -33,7 +33,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the arrow of line.
|
||||
/// |轴线箭头。
|
||||
/// ||轴线箭头。
|
||||
/// </summary>
|
||||
public ArrowStyle arrow
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Minor split line of axis in grid area.
|
||||
/// |坐标轴在 grid 区域中的次分隔线。次分割线会对齐次刻度线 minorTick。
|
||||
/// ||坐标轴在 grid 区域中的次分隔线。次分割线会对齐次刻度线 minorTick。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[Since("v3.2.0")]
|
||||
@@ -16,12 +16,12 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The distance between the split line and axis line.
|
||||
/// |刻度线与轴线的距离。
|
||||
/// ||刻度线与轴线的距离。
|
||||
/// </summary>
|
||||
public float distance { get { return m_Distance; } set { m_Distance = value; } }
|
||||
/// <summary>
|
||||
/// auto color.
|
||||
/// |自动设置颜色。
|
||||
/// ||自动设置颜色。
|
||||
/// </summary>
|
||||
public bool autoColor { get { return m_AutoColor; } set { m_AutoColor = value; } }
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Settings related to axis minor tick.
|
||||
/// |坐标轴次刻度相关设置。注意:次刻度无法在类目轴中使用。
|
||||
/// ||坐标轴次刻度相关设置。注意:次刻度无法在类目轴中使用。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[Since("v3.2.0")]
|
||||
@@ -15,7 +15,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Number of segments that the axis is split into.
|
||||
/// |分隔线之间分割的刻度数。
|
||||
/// ||分隔线之间分割的刻度数。
|
||||
/// </summary>
|
||||
public int splitNumber
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// the name of axis.
|
||||
/// |坐标轴名称。
|
||||
/// ||坐标轴名称。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class AxisName : ChildComponent
|
||||
@@ -17,7 +17,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show axis name.
|
||||
/// |是否显示坐标轴名称。
|
||||
/// ||是否显示坐标轴名称。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -26,7 +26,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the name of axis.
|
||||
/// |坐标轴名称。
|
||||
/// ||坐标轴名称。
|
||||
/// </summary>
|
||||
public string name
|
||||
{
|
||||
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the axis name position are the same with 0 position of YAxis.
|
||||
/// |坐标轴名称的位置是否保持和Y轴0刻度一致。
|
||||
/// ||坐标轴名称的位置是否保持和Y轴0刻度一致。
|
||||
/// </summary>
|
||||
public bool onZero
|
||||
{
|
||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The text style of axis name.
|
||||
/// |文本样式。
|
||||
/// ||文本样式。
|
||||
/// </summary>
|
||||
public LabelStyle labelStyle
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Split area of axis in grid area, not shown by default.
|
||||
/// |坐标轴在 grid 区域中的分隔区域,默认不显示。
|
||||
/// ||坐标轴在 grid 区域中的分隔区域,默认不显示。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class AxisSplitArea : ChildComponent
|
||||
@@ -16,7 +16,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Set this to true to show the splitArea.
|
||||
/// |是否显示分隔区域。
|
||||
/// ||是否显示分隔区域。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -27,7 +27,7 @@ namespace XCharts.Runtime
|
||||
/// Color of split area. SplitArea color could also be set in color array,
|
||||
/// which the split lines would take as their colors in turns.
|
||||
/// Dark and light colors in turns are used by default.
|
||||
/// |分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。
|
||||
/// ||分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。
|
||||
/// </summary>
|
||||
public List<Color32> color
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Split line of axis in grid area.
|
||||
/// |坐标轴在 grid 区域中的分隔线。
|
||||
/// ||坐标轴在 grid 区域中的分隔线。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class AxisSplitLine : BaseLine
|
||||
@@ -18,17 +18,17 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The distance between the split line and axis line.
|
||||
/// |刻度线与轴线的距离。
|
||||
/// ||刻度线与轴线的距离。
|
||||
/// </summary>
|
||||
public float distance { get { return m_Distance; } set { m_Distance = value; } }
|
||||
/// <summary>
|
||||
/// auto color.
|
||||
/// |自动设置颜色。
|
||||
/// ||自动设置颜色。
|
||||
/// </summary>
|
||||
public bool autoColor { get { return m_AutoColor; } set { m_AutoColor = value; } }
|
||||
/// <summary>
|
||||
/// Interval of Axis splitLine.
|
||||
/// |坐标轴分隔线的显示间隔。
|
||||
/// ||坐标轴分隔线的显示间隔。
|
||||
/// </summary>
|
||||
public int interval
|
||||
{
|
||||
@@ -37,7 +37,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to show the first split line.
|
||||
/// |是否显示第一条分割线。
|
||||
/// ||是否显示第一条分割线。
|
||||
/// </summary>
|
||||
public bool showStartLine
|
||||
{
|
||||
@@ -46,7 +46,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to show the last split line.
|
||||
/// |是否显示最后一条分割线。
|
||||
/// ||是否显示最后一条分割线。
|
||||
/// </summary>
|
||||
public bool showEndLine
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Settings related to axis tick.
|
||||
/// |坐标轴刻度相关设置。
|
||||
/// ||坐标轴刻度相关设置。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class AxisTick : BaseLine
|
||||
@@ -19,13 +19,13 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The distance between the tick line and axis line.
|
||||
/// |刻度线与轴线的距离。
|
||||
/// ||刻度线与轴线的距离。
|
||||
/// </summary>
|
||||
public float distance { get { return m_Distance; } set { m_Distance = value; } }
|
||||
|
||||
/// <summary>
|
||||
/// Align axis tick with label, which is available only when boundaryGap is set to be true in category axis.
|
||||
/// |类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。
|
||||
/// ||类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。
|
||||
/// </summary>
|
||||
public bool alignWithLabel
|
||||
{
|
||||
@@ -34,7 +34,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Set this to true so the axis labels face the inside direction.
|
||||
/// |坐标轴刻度是否朝内,默认朝外。
|
||||
/// ||坐标轴刻度是否朝内,默认朝外。
|
||||
/// </summary>
|
||||
public bool inside
|
||||
{
|
||||
@@ -43,7 +43,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to display the first tick.
|
||||
/// |是否显示第一个刻度。
|
||||
/// ||是否显示第一个刻度。
|
||||
/// </summary>
|
||||
public bool showStartTick
|
||||
{
|
||||
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to display the last tick.
|
||||
/// |是否显示最后一个刻度。
|
||||
/// ||是否显示最后一个刻度。
|
||||
/// </summary>
|
||||
public bool showEndTick
|
||||
{
|
||||
@@ -61,7 +61,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Number of segments that the axis is split into.
|
||||
/// |分隔线之间分割的刻度数。
|
||||
/// ||分隔线之间分割的刻度数。
|
||||
/// </summary>
|
||||
public int splitNumber
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Radial axis of polar coordinate.
|
||||
/// |极坐标系的径向轴。
|
||||
/// ||极坐标系的径向轴。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[RequireChartComponent(typeof(PolarCoord))]
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Single axis.
|
||||
/// |单轴。
|
||||
/// ||单轴。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[ComponentHandler(typeof(SingleAxisHander), true)]
|
||||
@@ -21,7 +21,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Orientation of the axis. By default, it's 'Horizontal'. You can set it to be 'Vertical' to make a vertical axis.
|
||||
/// |坐标轴朝向。默认为水平朝向。
|
||||
/// ||坐标轴朝向。默认为水平朝向。
|
||||
/// </summary>
|
||||
public Orient orient
|
||||
{
|
||||
@@ -30,7 +30,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between component and the left side of the container.
|
||||
/// |组件离容器左侧的距离。
|
||||
/// ||组件离容器左侧的距离。
|
||||
/// </summary>
|
||||
public float left
|
||||
{
|
||||
@@ -39,7 +39,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between component and the right side of the container.
|
||||
/// |组件离容器右侧的距离。
|
||||
/// ||组件离容器右侧的距离。
|
||||
/// </summary>
|
||||
public float right
|
||||
{
|
||||
@@ -48,7 +48,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between component and the top side of the container.
|
||||
/// |组件离容器上侧的距离。
|
||||
/// ||组件离容器上侧的距离。
|
||||
/// </summary>
|
||||
public float top
|
||||
{
|
||||
@@ -57,7 +57,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between component and the bottom side of the container.
|
||||
/// |组件离容器下侧的距离。
|
||||
/// ||组件离容器下侧的距离。
|
||||
/// </summary>
|
||||
public float bottom
|
||||
{
|
||||
@@ -66,7 +66,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// width of axis.
|
||||
/// |坐标轴宽。
|
||||
/// ||坐标轴宽。
|
||||
/// </summary>
|
||||
public float width
|
||||
{
|
||||
@@ -75,7 +75,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// height of axis.
|
||||
/// |坐标轴高。
|
||||
/// ||坐标轴高。
|
||||
/// </summary>
|
||||
public float height
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The x axis in cartesian(rectangular) coordinate.
|
||||
/// |直角坐标系 grid 中的 x 轴。
|
||||
/// ||直角坐标系 grid 中的 x 轴。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[RequireChartComponent(typeof(GridCoord))]
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The x axis in cartesian(rectangular) coordinate.
|
||||
/// |直角坐标系 grid 中的 y 轴。
|
||||
/// ||直角坐标系 grid 中的 y 轴。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[RequireChartComponent(typeof(GridCoord), typeof(XAxis))]
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Background component.
|
||||
/// |背景组件。
|
||||
/// ||背景组件。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[DisallowMultipleComponent]
|
||||
@@ -21,7 +21,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to enable the background component.
|
||||
/// |是否启用背景组件。
|
||||
/// ||是否启用背景组件。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -30,7 +30,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the image of background.
|
||||
/// |背景图。
|
||||
/// ||背景图。
|
||||
/// </summary>
|
||||
public Sprite image
|
||||
{
|
||||
@@ -40,7 +40,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the fill type of background image.
|
||||
/// |背景图填充类型。
|
||||
/// ||背景图填充类型。
|
||||
/// </summary>
|
||||
public Image.Type imageType
|
||||
{
|
||||
@@ -59,7 +59,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to use theme background color for component color when the background component is on.
|
||||
/// |当background组件开启时,是否自动使用主题背景色作为backgrounnd组件的颜色。当设置为false时,用imageColor作为颜色。
|
||||
/// ||当background组件开启时,是否自动使用主题背景色作为backgrounnd组件的颜色。当设置为false时,用imageColor作为颜色。
|
||||
/// </summary>
|
||||
public bool autoColor
|
||||
{
|
||||
|
||||
@@ -4,30 +4,30 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The style of area.
|
||||
/// |区域填充样式。
|
||||
/// ||区域填充样式。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class AreaStyle : ChildComponent, ISerieComponent, ISerieDataComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// Origin position of area.
|
||||
/// |图形区域的起始位置。默认情况下,图形会从坐标轴轴线到数据间进行填充。如果需要填充的区域是坐标轴最大值到数据间,或者坐标轴最小值到数据间,则可以通过这个配置项进行设置。
|
||||
/// ||图形区域的起始位置。默认情况下,图形会从坐标轴轴线到数据间进行填充。如果需要填充的区域是坐标轴最大值到数据间,或者坐标轴最小值到数据间,则可以通过这个配置项进行设置。
|
||||
/// </summary>
|
||||
public enum AreaOrigin
|
||||
{
|
||||
/// <summary>
|
||||
/// to fill between axis line to data.
|
||||
/// |填充坐标轴轴线到数据间的区域。
|
||||
/// ||填充坐标轴轴线到数据间的区域。
|
||||
/// </summary>
|
||||
Auto,
|
||||
/// <summary>
|
||||
/// to fill between min axis value (when not inverse) to data.
|
||||
/// |填充坐标轴底部到数据间的区域。
|
||||
/// ||填充坐标轴底部到数据间的区域。
|
||||
/// </summary>
|
||||
Start,
|
||||
/// <summary>
|
||||
/// to fill between max axis value (when not inverse) to data.
|
||||
/// |填充坐标轴顶部到数据间的区域。
|
||||
/// ||填充坐标轴顶部到数据间的区域。
|
||||
/// </summary>
|
||||
End
|
||||
}
|
||||
@@ -42,7 +42,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Set this to false to prevent the areafrom showing.
|
||||
/// |是否显示区域填充。
|
||||
/// ||是否显示区域填充。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -51,7 +51,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the origin of area.
|
||||
/// |区域填充的起始位置。
|
||||
/// ||区域填充的起始位置。
|
||||
/// </summary>
|
||||
public AreaOrigin origin
|
||||
{
|
||||
@@ -60,7 +60,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of area,default use serie color.
|
||||
/// |区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。
|
||||
/// ||区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。
|
||||
/// </summary>
|
||||
public Color32 color
|
||||
{
|
||||
@@ -69,7 +69,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Gradient color, start color to toColor.
|
||||
/// |渐变色的终点颜色。
|
||||
/// ||渐变色的终点颜色。
|
||||
/// </summary>
|
||||
public Color32 toColor
|
||||
{
|
||||
@@ -78,7 +78,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0.
|
||||
/// |图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
|
||||
/// ||图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
|
||||
/// </summary>
|
||||
public float opacity
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to fill only polygonal areas. Currently, only convex polygons are supported.
|
||||
/// |是否只填充多边形区域。目前只支持凸多边形。
|
||||
/// ||是否只填充多边形区域。目前只支持凸多边形。
|
||||
/// </summary>
|
||||
public bool innerFill
|
||||
{
|
||||
@@ -97,7 +97,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Whether to fill the gradient color to the top. The default is true, which means that the gradient color is filled to the top.
|
||||
/// If it is false, the gradient color is filled to the actual position.
|
||||
/// |渐变色是到顶部还是到实际位置。默认为true到顶部。
|
||||
/// ||渐变色是到顶部还是到实际位置。默认为true到顶部。
|
||||
/// </summary>
|
||||
public bool toTop
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The widht of arrow.
|
||||
/// |箭头宽。
|
||||
/// ||箭头宽。
|
||||
/// </summary>
|
||||
public float width
|
||||
{
|
||||
@@ -25,7 +25,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The height of arrow.
|
||||
/// |箭头高。
|
||||
/// ||箭头高。
|
||||
/// </summary>
|
||||
public float height
|
||||
{
|
||||
@@ -34,7 +34,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The offset of arrow.
|
||||
/// |箭头偏移。
|
||||
/// ||箭头偏移。
|
||||
/// </summary>
|
||||
public float offset
|
||||
{
|
||||
@@ -43,7 +43,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The dent of arrow.
|
||||
/// |箭头的凹度。
|
||||
/// ||箭头的凹度。
|
||||
/// </summary>
|
||||
public float dent
|
||||
{
|
||||
@@ -53,7 +53,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the color of arrow.
|
||||
/// |箭头颜色。
|
||||
/// ||箭头颜色。
|
||||
/// </summary>
|
||||
public Color32 color
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Settings related to base line.
|
||||
/// |线条基础配置。
|
||||
/// ||线条基础配置。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class BaseLine : ChildComponent
|
||||
@@ -14,7 +14,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Set this to false to prevent the axis line from showing.
|
||||
/// |是否显示坐标轴轴线。
|
||||
/// ||是否显示坐标轴轴线。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the data icon is show.
|
||||
/// |是否显示图标。
|
||||
/// ||是否显示图标。
|
||||
/// </summary>
|
||||
public bool show { get { return m_Show; } set { m_Show = value; } }
|
||||
/// <summary>
|
||||
@@ -53,12 +53,12 @@ namespace XCharts.Runtime
|
||||
public Layer layer { get { return m_Layer; } set { m_Layer = value; } }
|
||||
/// <summary>
|
||||
/// The image of icon.
|
||||
/// |图标的图片。
|
||||
/// ||图标的图片。
|
||||
/// </summary>
|
||||
public Sprite sprite { get { return m_Sprite; } set { m_Sprite = value; } }
|
||||
/// <summary>
|
||||
/// How to display the icon.
|
||||
/// |图片的显示类型。
|
||||
/// ||图片的显示类型。
|
||||
/// </summary>
|
||||
public Image.Type type { get { return m_Type; } set { m_Type = value; } }
|
||||
/// <summary>
|
||||
|
||||
@@ -27,17 +27,17 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether the data icon is show.
|
||||
/// |是否显示图标。
|
||||
/// ||是否显示图标。
|
||||
/// </summary>
|
||||
public bool show { get { return m_Show; } set { m_Show = value; } }
|
||||
/// <summary>
|
||||
/// The image of icon.
|
||||
/// |图标的图片。
|
||||
/// ||图标的图片。
|
||||
/// </summary>
|
||||
public Sprite sprite { get { return m_Sprite; } set { m_Sprite = value; } }
|
||||
/// <summary>
|
||||
/// How to display the image.
|
||||
/// |图片的显示类型。
|
||||
/// ||图片的显示类型。
|
||||
/// </summary>
|
||||
public Image.Type type { get { return m_Type; } set { m_Type = value; } }
|
||||
/// <summary>
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Gradient color1.
|
||||
/// |渐变色的颜色1。
|
||||
/// ||渐变色的颜色1。
|
||||
/// </summary>
|
||||
public Color32 toColor
|
||||
{
|
||||
@@ -96,7 +96,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Gradient color2.Only valid in line diagrams.
|
||||
/// |渐变色的颜色2。只在折线图中有效。
|
||||
/// ||渐变色的颜色2。只在折线图中有效。
|
||||
/// </summary>
|
||||
public Color32 toColor2
|
||||
{
|
||||
@@ -105,7 +105,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Serie's mark color. It is only used to display Legend and Tooltip, and does not affect the drawing color. The default value is clear.
|
||||
/// |Serie的标识颜色。仅用于Legend和Tooltip的展示,不影响绘制颜色,默认为clear。
|
||||
/// ||Serie的标识颜色。仅用于Legend和Tooltip的展示,不影响绘制颜色,默认为clear。
|
||||
/// </summary>
|
||||
public Color32 markColor
|
||||
{
|
||||
@@ -210,7 +210,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Standard numeric format strings.
|
||||
/// |标准数字格式字符串。用于将数值格式化显示为字符串。
|
||||
/// ||标准数字格式字符串。用于将数值格式化显示为字符串。
|
||||
/// 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。
|
||||
/// 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
|
||||
/// </summary>
|
||||
@@ -222,7 +222,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)).
|
||||
/// |圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。
|
||||
/// ||圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。
|
||||
/// </summary>
|
||||
public float[] cornerRadius
|
||||
{
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show the arrow.
|
||||
/// |是否显示箭头。
|
||||
/// ||是否显示箭头。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -42,7 +42,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The position of arrow.
|
||||
/// |箭头位置。
|
||||
/// ||箭头位置。
|
||||
/// </summary>
|
||||
public Position position
|
||||
{
|
||||
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the arrow of line.
|
||||
/// |箭头。
|
||||
/// ||箭头。
|
||||
/// </summary>
|
||||
public ArrowStyle arrow
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The style of line.
|
||||
/// |线条样式。
|
||||
/// ||线条样式。
|
||||
/// 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。
|
||||
/// toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。
|
||||
/// </summary>
|
||||
@@ -53,7 +53,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether show line.
|
||||
/// |是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。
|
||||
/// ||是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -62,7 +62,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the type of line.
|
||||
/// |线的类型。
|
||||
/// ||线的类型。
|
||||
/// </summary>
|
||||
public Type type
|
||||
{
|
||||
@@ -71,7 +71,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of line, default use serie color.
|
||||
/// |线的颜色。
|
||||
/// ||线的颜色。
|
||||
/// </summary>
|
||||
public Color32 color
|
||||
{
|
||||
@@ -80,7 +80,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the middle color of line, default use serie color.
|
||||
/// |线的渐变颜色(需要水平方向渐变时)。
|
||||
/// ||线的渐变颜色(需要水平方向渐变时)。
|
||||
/// </summary>
|
||||
public Color32 toColor
|
||||
{
|
||||
@@ -89,7 +89,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the end color of line, default use serie color.
|
||||
/// |线的渐变颜色2(需要水平方向三个渐变色的渐变时)。
|
||||
/// ||线的渐变颜色2(需要水平方向三个渐变色的渐变时)。
|
||||
/// </summary>
|
||||
public Color32 toColor2
|
||||
{
|
||||
@@ -98,7 +98,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the width of line.
|
||||
/// |线宽。
|
||||
/// ||线宽。
|
||||
/// </summary>
|
||||
public float width
|
||||
{
|
||||
@@ -107,7 +107,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the length of line.
|
||||
/// |线长。
|
||||
/// ||线长。
|
||||
/// </summary>
|
||||
public float length
|
||||
{
|
||||
@@ -116,7 +116,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0.
|
||||
/// |线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
|
||||
/// ||线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。
|
||||
/// </summary>
|
||||
public float opacity
|
||||
{
|
||||
@@ -127,7 +127,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// the length of dash line. default value is 0, which means the length of dash line is 12 times of line width.
|
||||
/// Represents a multiple of the number of segments in a line chart.
|
||||
/// |虚线的长度。默认0时为线条宽度的12倍。在折线图中代表分割段数的倍数。
|
||||
/// ||虚线的长度。默认0时为线条宽度的12倍。在折线图中代表分割段数的倍数。
|
||||
/// </summary>
|
||||
public float dashLength
|
||||
{
|
||||
@@ -138,7 +138,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// the length of dot line. default value is 0, which means the length of dot line is 2 times of line width.
|
||||
/// Represents a multiple of the number of segments in a line chart.
|
||||
/// |点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。
|
||||
/// ||点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。
|
||||
/// </summary>
|
||||
public float dotLength
|
||||
{
|
||||
@@ -149,7 +149,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// the length of gap line. default value is 0, which means the length of gap line is 3 times of line width.
|
||||
/// Represents a multiple of the number of segments in a line chart.
|
||||
/// |点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。
|
||||
/// ||点线的长度。默认0时为线条宽度的3倍。在折线图中代表分割段数的倍数。
|
||||
/// </summary>
|
||||
public float gapLength
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Location type. Quick to set the general location.
|
||||
/// |位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置。
|
||||
/// ||位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class Location : ChildComponent, IPropertyChanged
|
||||
@@ -53,7 +53,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between component and the left side of the container.
|
||||
/// |离容器左侧的距离。
|
||||
/// ||离容器左侧的距离。
|
||||
/// </summary>
|
||||
public float left
|
||||
{
|
||||
@@ -62,7 +62,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between component and the left side of the container.
|
||||
/// |离容器右侧的距离。
|
||||
/// ||离容器右侧的距离。
|
||||
/// </summary>
|
||||
public float right
|
||||
{
|
||||
@@ -71,7 +71,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between component and the left side of the container.
|
||||
/// |离容器上侧的距离。
|
||||
/// ||离容器上侧的距离。
|
||||
/// </summary>
|
||||
public float top
|
||||
{
|
||||
@@ -80,7 +80,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between component and the left side of the container.
|
||||
/// |离容器下侧的距离。
|
||||
/// ||离容器下侧的距离。
|
||||
/// </summary>
|
||||
public float bottom
|
||||
{
|
||||
@@ -90,7 +90,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the anchor of text.
|
||||
/// |Location对应的Anchor锚点
|
||||
/// ||Location对应的Anchor锚点
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public TextAnchor runtimeTextAlignment { get { return m_TextAlignment; } }
|
||||
@@ -100,17 +100,17 @@ namespace XCharts.Runtime
|
||||
#endif
|
||||
/// <summary>
|
||||
/// the minimum achor.
|
||||
/// |Location对应的anchorMin。
|
||||
/// ||Location对应的anchorMin。
|
||||
/// </summary>
|
||||
public Vector2 runtimeAnchorMin { get { return m_AnchorMin; } }
|
||||
/// <summary>
|
||||
/// the maximun achor.
|
||||
/// |Location对应的anchorMax.
|
||||
/// |</summary>
|
||||
/// ||Location对应的anchorMax.
|
||||
/// ||</summary>
|
||||
public Vector2 runtimeAnchorMax { get { return m_AnchorMax; } }
|
||||
/// <summary>
|
||||
/// the povot.
|
||||
/// |Loation对应的中心点。
|
||||
/// ||Loation对应的中心点。
|
||||
/// </summary>
|
||||
public Vector2 runtimePivot { get { return m_Pivot; } }
|
||||
public float runtimeLeft { get; private set; }
|
||||
|
||||
@@ -12,23 +12,23 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// the type of value.
|
||||
/// |数值类型。
|
||||
/// ||数值类型。
|
||||
/// </summary>
|
||||
public enum Type
|
||||
{
|
||||
/// <summary>
|
||||
/// Percent value form.
|
||||
/// |百分比形式。
|
||||
/// ||百分比形式。
|
||||
/// </summary>
|
||||
Percent,
|
||||
/// <summary>
|
||||
/// Absolute value form.
|
||||
/// |绝对值形式。
|
||||
/// ||绝对值形式。
|
||||
/// </summary>
|
||||
Absolute,
|
||||
/// <summary>
|
||||
/// Extra value form.
|
||||
/// |额外形式。
|
||||
/// ||额外形式。
|
||||
/// </summary>
|
||||
Extra
|
||||
}
|
||||
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Get the value by type.
|
||||
/// |根据类型获取值。
|
||||
/// ||根据类型获取值。
|
||||
/// </summary>
|
||||
/// <param name="total">默认值</param>
|
||||
/// <returns></returns>
|
||||
|
||||
@@ -23,39 +23,39 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The area style of marquee.
|
||||
/// |选取框区域填充样式。
|
||||
/// ||选取框区域填充样式。
|
||||
/// </summary>
|
||||
public AreaStyle areaStyle { get { return m_AreaStyle; } set { m_AreaStyle = value; } }
|
||||
/// <summary>
|
||||
/// The line style of marquee border.
|
||||
/// |选取框区域边框样式。
|
||||
/// ||选取框区域边框样式。
|
||||
/// </summary>
|
||||
public LineStyle lineStyle { get { return m_LineStyle; } set { m_LineStyle = value; } }
|
||||
/// <summary>
|
||||
/// Check whether the scope is applied to the DataZoom.
|
||||
/// If this parameter is set to true, the range after the selection is complete is the DataZoom selection range.
|
||||
/// |选取框范围是否应用到DataZoom上。当为true时,框选结束后的范围即为DataZoom的选择范围。
|
||||
/// ||选取框范围是否应用到DataZoom上。当为true时,框选结束后的范围即为DataZoom的选择范围。
|
||||
/// </summary>
|
||||
public bool apply { get { return m_Apply; } set { m_Apply = value; } }
|
||||
/// <summary>
|
||||
/// Whether to select the actual box selection area. When true,
|
||||
/// the actual range between the mouse's actual point and the end point is used as the box selection area.
|
||||
/// |是否选取实际框选区域。当为true时,以鼠标的其实点和结束点间的实际范围作为框选区域。
|
||||
/// ||是否选取实际框选区域。当为true时,以鼠标的其实点和结束点间的实际范围作为框选区域。
|
||||
/// </summary>
|
||||
public bool realRect { get { return m_RealRect; } set { m_RealRect = value; } }
|
||||
/// <summary>
|
||||
/// Customize the callback to the start of the selection of the checkbox.
|
||||
/// |自定义选取框开始选取时的回调。
|
||||
/// ||自定义选取框开始选取时的回调。
|
||||
/// </summary>
|
||||
public Action<DataZoom> onStart { set { m_OnStart = value; } get { return m_OnStart; } }
|
||||
/// <summary>
|
||||
/// Custom checkboxes select ongoing callbacks.
|
||||
/// |自定义选取框选取进行时的回调。
|
||||
/// ||自定义选取框选取进行时的回调。
|
||||
/// </summary>
|
||||
public Action<DataZoom> onGoing { set { m_OnStart = value; } get { return m_OnStart; } }
|
||||
/// <summary>
|
||||
/// Customize the callback at the end of the selection.
|
||||
/// |自定义选取框结束选取时的回调。
|
||||
/// ||自定义选取框结束选取时的回调。
|
||||
/// </summary>
|
||||
public Action<DataZoom> onEnd { set { m_OnEnd = value; } get { return m_OnEnd; } }
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// padding setting of item or text.
|
||||
/// |边距设置。
|
||||
/// ||边距设置。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class Padding : ChildComponent
|
||||
@@ -41,7 +41,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// padding of top.
|
||||
/// |顶部间距。
|
||||
/// ||顶部间距。
|
||||
/// </summary>
|
||||
public float top
|
||||
{
|
||||
@@ -50,7 +50,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// padding of right.
|
||||
/// |右部间距。
|
||||
/// ||右部间距。
|
||||
/// </summary>
|
||||
public float right
|
||||
{
|
||||
@@ -59,7 +59,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// padding of bottom.
|
||||
/// |底部间距。
|
||||
/// ||底部间距。
|
||||
/// </summary>
|
||||
public float bottom
|
||||
{
|
||||
@@ -68,7 +68,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// padding of left.
|
||||
/// |左边间距。
|
||||
/// ||左边间距。
|
||||
/// </summary>
|
||||
public float left
|
||||
{
|
||||
|
||||
@@ -6,23 +6,23 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The way to get serie symbol size.
|
||||
/// |获取标记图形大小的方式。
|
||||
/// ||获取标记图形大小的方式。
|
||||
/// </summary>
|
||||
public enum SymbolSizeType
|
||||
{
|
||||
/// <summary>
|
||||
/// Specify constant for symbol size.
|
||||
/// |自定义大小。
|
||||
/// ||自定义大小。
|
||||
/// </summary>
|
||||
Custom,
|
||||
/// <summary>
|
||||
/// Specify the dataIndex and dataScale to calculate symbol size.
|
||||
/// |通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
|
||||
/// ||通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
|
||||
/// </summary>
|
||||
FromData,
|
||||
/// <summary>
|
||||
/// Specify function for symbol size.
|
||||
/// |通过委托函数获取。
|
||||
/// ||通过委托函数获取。
|
||||
/// </summary>
|
||||
Function,
|
||||
}
|
||||
@@ -61,7 +61,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the type of symbol size.
|
||||
/// |标记图形的大小获取方式。
|
||||
/// ||标记图形的大小获取方式。
|
||||
/// </summary>
|
||||
public SymbolSizeType sizeType
|
||||
{
|
||||
@@ -70,7 +70,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// whitch data index is when the sizeType assined as FromData.
|
||||
/// |当sizeType指定为FromData时,指定的数据源索引。
|
||||
/// ||当sizeType指定为FromData时,指定的数据源索引。
|
||||
/// </summary>
|
||||
public int dataIndex
|
||||
{
|
||||
@@ -79,7 +79,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the scale of data when sizeType assined as FromData.
|
||||
/// |当sizeType指定为FromData时,指定的倍数系数。
|
||||
/// ||当sizeType指定为FromData时,指定的倍数系数。
|
||||
/// </summary>
|
||||
public float dataScale
|
||||
{
|
||||
@@ -88,7 +88,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the function of size when sizeType assined as Function.
|
||||
/// |当sizeType指定为Function时,指定的委托函数。
|
||||
/// ||当sizeType指定为Function时,指定的委托函数。
|
||||
/// </summary>
|
||||
public SymbolSizeFunction sizeFunction
|
||||
{
|
||||
@@ -97,7 +97,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the index start to show symbol.
|
||||
/// |开始显示图形标记的索引。
|
||||
/// ||开始显示图形标记的索引。
|
||||
/// </summary>
|
||||
public int startIndex
|
||||
{
|
||||
@@ -106,7 +106,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the interval of show symbol.
|
||||
/// |显示图形标记的间隔。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
|
||||
/// ||显示图形标记的间隔。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
|
||||
/// </summary>
|
||||
public int interval
|
||||
{
|
||||
@@ -115,7 +115,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// whether to show the last symbol.
|
||||
/// |是否强制显示最后一个图形标记。
|
||||
/// ||是否强制显示最后一个图形标记。
|
||||
/// </summary>
|
||||
public bool forceShowLast
|
||||
{
|
||||
@@ -132,7 +132,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Minimum symbol size.
|
||||
/// |图形最小尺寸。只在sizeType为SymbolSizeType.FromData时有效。
|
||||
/// ||图形最小尺寸。只在sizeType为SymbolSizeType.FromData时有效。
|
||||
/// </summary>
|
||||
public float minSize
|
||||
{
|
||||
@@ -141,7 +141,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Maximum symbol size.
|
||||
/// |图形最大尺寸。只在sizeType为SymbolSizeType.FromData时有效。
|
||||
/// ||图形最大尺寸。只在sizeType为SymbolSizeType.FromData时有效。
|
||||
/// </summary>
|
||||
public float maxSize
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// the type of symbol.
|
||||
/// |标记图形的类型。
|
||||
/// ||标记图形的类型。
|
||||
/// </summary>
|
||||
public enum SymbolType
|
||||
{
|
||||
@@ -100,7 +100,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether the symbol is showed.
|
||||
/// |是否显示标记。
|
||||
/// ||是否显示标记。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -109,7 +109,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the type of symbol.
|
||||
/// |标记类型。
|
||||
/// ||标记类型。
|
||||
/// </summary>
|
||||
public SymbolType type
|
||||
{
|
||||
@@ -118,7 +118,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the size of symbol.
|
||||
/// |标记的大小。
|
||||
/// ||标记的大小。
|
||||
/// </summary>
|
||||
public float size
|
||||
{
|
||||
@@ -127,7 +127,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the gap of symbol and line segment.
|
||||
/// |图形标记和线条的间隙距离。
|
||||
/// ||图形标记和线条的间隙距离。
|
||||
/// </summary>
|
||||
public float gap
|
||||
{
|
||||
@@ -160,7 +160,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the fill type of image.
|
||||
/// |图形填充类型。
|
||||
/// ||图形填充类型。
|
||||
/// </summary>
|
||||
public Image.Type imageType
|
||||
{
|
||||
@@ -187,7 +187,7 @@ namespace XCharts.Runtime
|
||||
private List<float> m_AnimationSize = new List<float>() { 0, 5, 10 };
|
||||
/// <summary>
|
||||
/// the setting for effect scatter.
|
||||
/// |带有涟漪特效动画的散点图的动画参数。
|
||||
/// ||带有涟漪特效动画的散点图的动画参数。
|
||||
/// </summary>
|
||||
public List<float> animationSize { get { return m_AnimationSize; } }
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Text character limitation and adaptation component. When the length of the text exceeds the set length,
|
||||
/// it is cropped and suffixes are appended to the end.Only valid in the category axis.
|
||||
/// |文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。
|
||||
/// ||文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。
|
||||
/// 只在类目轴中有效。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
@@ -20,7 +20,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to enable text limit.
|
||||
/// |是否启用文本自适应。
|
||||
/// ||是否启用文本自适应。
|
||||
/// [default:true]
|
||||
/// </summary>
|
||||
public bool enable
|
||||
@@ -30,8 +30,8 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom.
|
||||
/// |Clipping occurs when the width of the text is greater than this value.
|
||||
/// |设定最大宽度。默认为0表示自动获取,否则表示自定义。当文本的宽度大于该值进行裁剪。
|
||||
/// ||Clipping occurs when the width of the text is greater than this value.
|
||||
/// ||设定最大宽度。默认为0表示自动获取,否则表示自定义。当文本的宽度大于该值进行裁剪。
|
||||
/// </summary>
|
||||
public float maxWidth
|
||||
{
|
||||
@@ -40,7 +40,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// White pixel distance at both ends.
|
||||
/// |两边留白像素距离。
|
||||
/// ||两边留白像素距离。
|
||||
/// [default:10f]
|
||||
/// </summary>
|
||||
public float gap
|
||||
@@ -50,7 +50,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Suffixes when the length exceeds.
|
||||
/// |长度超出时的后缀。
|
||||
/// ||长度超出时的后缀。
|
||||
/// [default: "..."]
|
||||
/// </summary>
|
||||
public string suffix
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Settings related to text.
|
||||
/// |文本的内边距设置。
|
||||
/// ||文本的内边距设置。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class TextPadding : Padding
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Settings related to text.
|
||||
/// |文本的相关设置。
|
||||
/// ||文本的相关设置。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class TextStyle : ChildComponent
|
||||
@@ -37,7 +37,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Rotation of text.
|
||||
/// |文本的旋转。
|
||||
/// ||文本的旋转。
|
||||
/// [default: `0f`]
|
||||
/// </summary>
|
||||
public float rotate
|
||||
@@ -55,7 +55,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of text.
|
||||
/// |文本的颜色。
|
||||
/// ||文本的颜色。
|
||||
/// [default: `Color.clear`]
|
||||
/// </summary>
|
||||
public Color color
|
||||
@@ -65,7 +65,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the font of text. When `null`, the theme's font is used by default.
|
||||
/// |文本字体。
|
||||
/// ||文本字体。
|
||||
/// [default: null]
|
||||
/// </summary>
|
||||
public Font font
|
||||
@@ -75,7 +75,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// font size.
|
||||
/// |文本字体大小。
|
||||
/// ||文本字体大小。
|
||||
/// [default: 18]
|
||||
/// </summary>
|
||||
public int fontSize
|
||||
@@ -85,7 +85,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// font style.
|
||||
/// |文本字体的风格。
|
||||
/// ||文本字体的风格。
|
||||
/// [default: FontStyle.Normal]
|
||||
/// </summary>
|
||||
public FontStyle fontStyle
|
||||
@@ -95,7 +95,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// text line spacing.
|
||||
/// |行间距。
|
||||
/// ||行间距。
|
||||
/// [default: 1f]
|
||||
/// </summary>
|
||||
public float lineSpacing
|
||||
@@ -130,7 +130,7 @@ namespace XCharts.Runtime
|
||||
#if dUI_TextMeshPro
|
||||
/// <summary>
|
||||
/// the font of textmeshpro.
|
||||
/// |TextMeshPro字体。
|
||||
/// ||TextMeshPro字体。
|
||||
/// </summary>
|
||||
public TMP_FontAsset tmpFont
|
||||
{
|
||||
@@ -139,7 +139,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the font style of TextMeshPro.
|
||||
/// |TextMeshPro字体类型。
|
||||
/// ||TextMeshPro字体类型。
|
||||
/// </summary>
|
||||
public FontStyles tmpFontStyle
|
||||
{
|
||||
@@ -148,7 +148,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the text alignment of TextMeshPro.
|
||||
/// |TextMeshPro字体对齐方式。
|
||||
/// ||TextMeshPro字体对齐方式。
|
||||
/// </summary>
|
||||
public TextAlignmentOptions tmpAlignment
|
||||
{
|
||||
@@ -157,7 +157,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the sprite asset of TextMeshPro.
|
||||
/// |TextMeshPro的Sprite Asset。
|
||||
/// ||TextMeshPro的Sprite Asset。
|
||||
/// </summary>
|
||||
public TMP_SpriteAsset tmpSpriteAsset
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// comment of chart.
|
||||
/// |图表注解组件。
|
||||
/// ||图表注解组件。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ComponentHandler(typeof(CommentHander), true)]
|
||||
@@ -19,17 +19,17 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Set this to false to prevent the comment from showing.
|
||||
/// |是否显示注解组件。
|
||||
/// ||是否显示注解组件。
|
||||
/// </summary>
|
||||
public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } }
|
||||
/// <summary>
|
||||
/// The items of comment.
|
||||
/// |注解项。每个注解组件可以设置多个注解项。
|
||||
/// ||注解项。每个注解组件可以设置多个注解项。
|
||||
/// </summary>
|
||||
public List<CommentItem> items { get { return m_Items; } set { m_Items = value; SetComponentDirty(); } }
|
||||
/// <summary>
|
||||
/// The text style of all comments.
|
||||
/// |所有组件的文本样式。
|
||||
/// ||所有组件的文本样式。
|
||||
/// </summary>
|
||||
public LabelStyle labelStyle
|
||||
{
|
||||
@@ -38,7 +38,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The text style of all comments.
|
||||
/// |所有组件的文本样式。
|
||||
/// ||所有组件的文本样式。
|
||||
/// </summary>
|
||||
public CommentMarkStyle markStyle
|
||||
{
|
||||
@@ -68,7 +68,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Callback handling when parameters change.
|
||||
/// |参数变更时的回调处理。
|
||||
/// ||参数变更时的回调处理。
|
||||
/// </summary>
|
||||
public void OnChanged()
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// comment of chart.
|
||||
/// |注解项。
|
||||
/// ||注解项。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class CommentItem : ChildComponent
|
||||
@@ -20,27 +20,27 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Set this to false to prevent this comment item from showing.
|
||||
/// |是否显示当前注解项。
|
||||
/// ||是否显示当前注解项。
|
||||
/// </summary>
|
||||
public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } }
|
||||
/// <summary>
|
||||
/// content of comment.
|
||||
/// |注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。
|
||||
/// ||注解的文本内容。支持模板参数,可以参考Tooltip的itemFormatter。
|
||||
/// </summary>
|
||||
public string content { get { return m_Content; } set { if (PropertyUtil.SetClass(ref m_Content, value)) SetComponentDirty(); } }
|
||||
/// <summary>
|
||||
/// the mark rect of comment.
|
||||
/// |注解区域。
|
||||
/// ||注解区域。
|
||||
/// </summary>
|
||||
public Rect markRect { get { return m_MarkRect; } set { if (PropertyUtil.SetStruct(ref m_MarkRect, value)) SetVerticesDirty(); } }
|
||||
/// <summary>
|
||||
/// the mark rect style.
|
||||
/// |注解标记区域样式。
|
||||
/// ||注解标记区域样式。
|
||||
/// </summary>
|
||||
public CommentMarkStyle markStyle { get { return m_MarkStyle; } set { if (PropertyUtil.SetClass(ref m_MarkStyle, value)) SetVerticesDirty(); } }
|
||||
/// <summary>
|
||||
/// The text style of all comments.
|
||||
/// |注解项的文本样式。
|
||||
/// ||注解项的文本样式。
|
||||
/// </summary>
|
||||
public LabelStyle labelStyle
|
||||
{
|
||||
@@ -49,7 +49,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The location of comment.
|
||||
/// |Comment显示的位置。
|
||||
/// ||Comment显示的位置。
|
||||
/// </summary>
|
||||
public Location location
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// the comment mark style.
|
||||
/// |注解项区域样式。
|
||||
/// ||注解项区域样式。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class CommentMarkStyle : ChildComponent
|
||||
@@ -15,12 +15,12 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Set this to false to prevent this comment item from showing.
|
||||
/// |是否显示当前注解项。
|
||||
/// ||是否显示当前注解项。
|
||||
/// </summary>
|
||||
public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetVerticesDirty(); } }
|
||||
/// <summary>
|
||||
/// line style of comment mark area.
|
||||
/// |线条样式。
|
||||
/// ||线条样式。
|
||||
/// </summary>
|
||||
public LineStyle lineStyle { get { return m_LineStyle; } set { if (PropertyUtil.SetClass(ref m_LineStyle, value)) SetVerticesDirty(); } }
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace XCharts.Runtime
|
||||
/// DataZoom component is used for zooming a specific area,
|
||||
/// which enables user to investigate data in detail,
|
||||
/// or get an overview of the data, or get rid of outlier points.
|
||||
/// |DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。
|
||||
/// ||DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[ComponentHandler(typeof(DataZoomHandler), true)]
|
||||
@@ -17,30 +17,30 @@ namespace XCharts.Runtime
|
||||
/// Generally dataZoom component zoom or roam coordinate system through data filtering
|
||||
/// and set the windows of axes internally.
|
||||
/// Its behaviours vary according to filtering mode settings.
|
||||
/// |dataZoom 的运行原理是通过 数据过滤 来达到 数据窗口缩放 的效果。数据过滤模式的设置不同,效果也不同。
|
||||
/// ||dataZoom 的运行原理是通过 数据过滤 来达到 数据窗口缩放 的效果。数据过滤模式的设置不同,效果也不同。
|
||||
/// </summary>
|
||||
public enum FilterMode
|
||||
{
|
||||
/// <summary>
|
||||
/// data that outside the window will be filtered, which may lead to some changes of windows of other axes.
|
||||
/// For each data item, it will be filtered if one of the relevant dimensions is out of the window.
|
||||
/// |当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。
|
||||
/// ||当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。
|
||||
/// </summary>
|
||||
Filter,
|
||||
/// <summary>
|
||||
/// data that outside the window will be filtered, which may lead to some changes of windows of other axes.
|
||||
/// For each data item, it will be filtered only if all of the relevant dimensions are out of the same side of the window.
|
||||
/// |当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。
|
||||
/// ||当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。
|
||||
/// </summary>
|
||||
WeakFilter,
|
||||
/// <summary>
|
||||
/// data that outside the window will be set to NaN, which will not lead to changes of windows of other axes.
|
||||
/// |当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。
|
||||
/// ||当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。
|
||||
/// </summary>
|
||||
Empty,
|
||||
/// <summary>
|
||||
/// Do not filter data.
|
||||
/// |不过滤数据,只改变数轴范围。
|
||||
/// ||不过滤数据,只改变数轴范围。
|
||||
/// </summary>
|
||||
None
|
||||
}
|
||||
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
|
||||
//Value,
|
||||
/// <summary>
|
||||
/// percent value.
|
||||
/// |百分比。
|
||||
/// ||百分比。
|
||||
/// </summary>
|
||||
Percent
|
||||
}
|
||||
@@ -97,7 +97,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show dataZoom.
|
||||
/// |是否显示缩放区域。
|
||||
/// ||是否显示缩放区域。
|
||||
/// </summary>
|
||||
public bool enable
|
||||
{
|
||||
@@ -106,7 +106,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The mode of data filter.
|
||||
/// |数据过滤类型。
|
||||
/// ||数据过滤类型。
|
||||
/// </summary>
|
||||
public FilterMode filterMode
|
||||
{
|
||||
@@ -115,7 +115,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Specify which xAxis is controlled by the dataZoom.
|
||||
/// |控制的 x 轴索引列表。
|
||||
/// ||控制的 x 轴索引列表。
|
||||
/// </summary>
|
||||
public List<int> xAxisIndexs
|
||||
{
|
||||
@@ -124,7 +124,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Specify which yAxis is controlled by the dataZoom.
|
||||
/// |控制的 y 轴索引列表。
|
||||
/// ||控制的 y 轴索引列表。
|
||||
/// </summary>
|
||||
public List<int> yAxisIndexs
|
||||
{
|
||||
@@ -135,7 +135,7 @@ namespace XCharts.Runtime
|
||||
/// Whether built-in support is supported.
|
||||
/// Built into the coordinate system to allow the user to zoom in and out of the coordinate system by mouse dragging,
|
||||
/// mouse wheel, finger swiping (on the touch screen).
|
||||
/// |是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。
|
||||
/// ||是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。
|
||||
/// </summary>
|
||||
public bool supportInside
|
||||
{
|
||||
@@ -144,7 +144,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether inside scrolling is supported.
|
||||
/// |是否支持坐标系内滚动
|
||||
/// ||是否支持坐标系内滚动
|
||||
/// </summary>
|
||||
public bool supportInsideScroll
|
||||
{
|
||||
@@ -153,7 +153,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether insde drag is supported.
|
||||
/// |是否支持坐标系内拖拽
|
||||
/// ||是否支持坐标系内拖拽
|
||||
/// </summary>
|
||||
public bool supportInsideDrag
|
||||
{
|
||||
@@ -162,7 +162,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether a slider is supported. There are separate sliders on which the user zooms or roams.
|
||||
/// |是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。
|
||||
/// ||是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。
|
||||
/// </summary>
|
||||
public bool supportSlider
|
||||
{
|
||||
@@ -171,7 +171,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Supported Box Selected. Provides a marquee for scaling the data area.
|
||||
/// |是否支持框选。提供一个选框进行数据区域缩放。
|
||||
/// ||是否支持框选。提供一个选框进行数据区域缩放。
|
||||
/// </summary>
|
||||
public bool supportMarquee
|
||||
{
|
||||
@@ -180,7 +180,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to show data shadow, to indicate the data tendency in brief.
|
||||
/// |是否显示数据阴影。数据阴影可以简单地反应数据走势。
|
||||
/// ||是否显示数据阴影。数据阴影可以简单地反应数据走势。
|
||||
/// </summary>
|
||||
public bool showDataShadow
|
||||
{
|
||||
@@ -189,7 +189,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to show detail, that is, show the detailed data information when dragging.
|
||||
/// |是否显示detail,即拖拽时候显示详细数值信息。
|
||||
/// ||是否显示detail,即拖拽时候显示详细数值信息。
|
||||
/// </summary>
|
||||
public bool showDetail
|
||||
{
|
||||
@@ -198,7 +198,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Specify whether to lock the size of window (selected area).
|
||||
/// |是否锁定选择区域(或叫做数据窗口)的大小。
|
||||
/// ||是否锁定选择区域(或叫做数据窗口)的大小。
|
||||
/// 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。
|
||||
/// </summary>
|
||||
public bool zoomLock
|
||||
@@ -208,12 +208,12 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to show data shadow in dataZoom-silder component, to indicate the data tendency in brief.
|
||||
/// |拖动时,是否实时更新系列的视图。如果设置为 false,则只在拖拽结束的时候更新。默认为true,暂不支持修改。
|
||||
/// ||拖动时,是否实时更新系列的视图。如果设置为 false,则只在拖拽结束的时候更新。默认为true,暂不支持修改。
|
||||
/// </summary>
|
||||
public bool realtime { get { return true; } }
|
||||
/// <summary>
|
||||
/// The background color of the component.
|
||||
/// |组件的背景颜色。
|
||||
/// ||组件的背景颜色。
|
||||
/// </summary>
|
||||
public Color backgroundColor
|
||||
{
|
||||
@@ -222,7 +222,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of dataZoom data area.
|
||||
/// |数据区域颜色。
|
||||
/// ||数据区域颜色。
|
||||
/// </summary>
|
||||
public Color32 fillerColor
|
||||
{
|
||||
@@ -232,7 +232,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the color of dataZoom border.
|
||||
/// |边框颜色。
|
||||
/// ||边框颜色。
|
||||
/// </summary>
|
||||
public Color32 borderColor
|
||||
{
|
||||
@@ -250,7 +250,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Distance between dataZoom component and the bottom side of the container.
|
||||
/// bottom value is a instant pixel value like 10 or float value [0-1].
|
||||
/// |组件离容器下侧的距离。
|
||||
/// ||组件离容器下侧的距离。
|
||||
/// </summary>
|
||||
public float bottom
|
||||
{
|
||||
@@ -260,7 +260,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Distance between dataZoom component and the top side of the container.
|
||||
/// top value is a instant pixel value like 10 or float value [0-1].
|
||||
/// |组件离容器上侧的距离。
|
||||
/// ||组件离容器上侧的距离。
|
||||
/// </summary>
|
||||
public float top
|
||||
{
|
||||
@@ -270,7 +270,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Distance between dataZoom component and the left side of the container.
|
||||
/// left value is a instant pixel value like 10 or float value [0-1].
|
||||
/// |组件离容器左侧的距离。
|
||||
/// ||组件离容器左侧的距离。
|
||||
/// </summary>
|
||||
public float left
|
||||
{
|
||||
@@ -280,7 +280,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Distance between dataZoom component and the right side of the container.
|
||||
/// right value is a instant pixel value like 10 or float value [0-1].
|
||||
/// |组件离容器右侧的距离。
|
||||
/// ||组件离容器右侧的距离。
|
||||
/// </summary>
|
||||
public float right
|
||||
{
|
||||
@@ -289,7 +289,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Use absolute value or percent value in DataZoom.start and DataZoom.end.
|
||||
/// |取绝对值还是百分比。
|
||||
/// ||取绝对值还是百分比。
|
||||
/// </summary>
|
||||
public RangeMode rangeMode
|
||||
{
|
||||
@@ -298,7 +298,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The start percentage of the window out of the data extent, in the range of 0 ~ 100.
|
||||
/// |数据窗口范围的起始百分比。范围是:0 ~ 100。
|
||||
/// ||数据窗口范围的起始百分比。范围是:0 ~ 100。
|
||||
/// </summary>
|
||||
public float start
|
||||
{
|
||||
@@ -307,7 +307,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Lock start value.
|
||||
/// |固定起始值,不让改变。
|
||||
/// ||固定起始值,不让改变。
|
||||
/// </summary>
|
||||
public bool startLock
|
||||
{
|
||||
@@ -316,7 +316,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Lock end value.
|
||||
/// |固定结束值,不让改变。
|
||||
/// ||固定结束值,不让改变。
|
||||
/// </summary>
|
||||
public bool endLock
|
||||
{
|
||||
@@ -325,7 +325,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The end percentage of the window out of the data extent, in the range of 0 ~ 100.
|
||||
/// |数据窗口范围的结束百分比。范围是:0 ~ 100。
|
||||
/// ||数据窗口范围的结束百分比。范围是:0 ~ 100。
|
||||
/// </summary>
|
||||
public float end
|
||||
{
|
||||
@@ -334,7 +334,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Minimum number of display data. Minimum number of data displayed when DataZoom is enlarged to maximum.
|
||||
/// |最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。
|
||||
/// ||最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。
|
||||
/// </summary>
|
||||
public int minShowNum
|
||||
{
|
||||
@@ -344,7 +344,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// The sensitivity of dataZoom scroll.
|
||||
/// The larger the number, the more sensitive it is.
|
||||
/// |缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。
|
||||
/// ||缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。
|
||||
/// </summary>
|
||||
public float scrollSensitivity
|
||||
{
|
||||
@@ -354,7 +354,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Specify whether the layout of dataZoom component is horizontal or vertical. What's more,
|
||||
/// it indicates whether the horizontal axis or vertical axis is controlled by default in catesian coordinate system.
|
||||
/// |布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
|
||||
/// ||布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
|
||||
/// </summary>
|
||||
public Orient orient
|
||||
{
|
||||
@@ -363,7 +363,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// label style.
|
||||
/// |文本标签格式。
|
||||
/// ||文本标签格式。
|
||||
/// </summary>
|
||||
public LabelStyle labelStyle
|
||||
{
|
||||
@@ -411,12 +411,12 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The start label.
|
||||
/// |组件的开始信息文本。
|
||||
/// ||组件的开始信息文本。
|
||||
/// </summary>
|
||||
private ChartLabel m_StartLabel { get; set; }
|
||||
/// <summary>
|
||||
/// The end label.
|
||||
/// |组件的结束信息文本。
|
||||
/// ||组件的结束信息文本。
|
||||
/// </summary>
|
||||
private ChartLabel m_EndLabel { get; set; }
|
||||
|
||||
|
||||
@@ -42,32 +42,32 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether show debug component.
|
||||
/// |是否显示Debug组件。
|
||||
/// ||是否显示Debug组件。
|
||||
/// </summary>
|
||||
public bool show { get { return m_Show; } set { m_Show = value; } }
|
||||
/// <summary>
|
||||
/// Whether show children components of chart in hierarchy view.
|
||||
/// |是否在Hierarchy试图显示所有chart下的节点。
|
||||
/// ||是否在Hierarchy试图显示所有chart下的节点。
|
||||
/// </summary>
|
||||
public bool showAllChartObject { get { return m_ShowAllChartObject; } set { m_ShowAllChartObject = value; } }
|
||||
/// <summary>
|
||||
/// Whether to fold series in inspector view.
|
||||
/// |是否在Inspector上折叠Serie。
|
||||
/// ||是否在Inspector上折叠Serie。
|
||||
/// </summary>
|
||||
public bool foldSeries { get { return m_FoldSeries; } set { m_FoldSeries = value; } }
|
||||
/// <summary>
|
||||
/// frame rate.
|
||||
/// |当前帧率。
|
||||
/// ||当前帧率。
|
||||
/// </summary>
|
||||
public float fps { get; private set; }
|
||||
/// <summary>
|
||||
/// The average frame rate.
|
||||
/// |平均帧率。
|
||||
/// ||平均帧率。
|
||||
/// </summary>
|
||||
public float avgFps { get; private set; }
|
||||
/// <summary>
|
||||
/// The fefresh count of chart per second.
|
||||
/// |图表每秒刷新次数。
|
||||
/// ||图表每秒刷新次数。
|
||||
/// </summary>
|
||||
public int refreshCount { get; internal set; }
|
||||
internal int clickChartCount { get; set; }
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether the label line is showed.
|
||||
/// |是否显示视觉引导线。
|
||||
/// ||是否显示视觉引导线。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -64,7 +64,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the type of visual guide line.
|
||||
/// |视觉引导线类型。
|
||||
/// ||视觉引导线类型。
|
||||
/// </summary>
|
||||
public LineType lineType
|
||||
{
|
||||
@@ -73,7 +73,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of visual guild line.
|
||||
/// |视觉引导线颜色。默认和serie一致取自调色板。
|
||||
/// ||视觉引导线颜色。默认和serie一致取自调色板。
|
||||
/// </summary>
|
||||
public Color32 lineColor
|
||||
{
|
||||
@@ -82,7 +82,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the angle of visual guild line. Valid for broken line and curve line. Invalid in Pie.
|
||||
/// |视觉引导线的固定角度。对折线和曲线有效。在Pie中无效。
|
||||
/// ||视觉引导线的固定角度。对折线和曲线有效。在Pie中无效。
|
||||
/// </summary>
|
||||
public float lineAngle
|
||||
{
|
||||
@@ -91,7 +91,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the width of visual guild line.
|
||||
/// |视觉引导线的宽度。
|
||||
/// ||视觉引导线的宽度。
|
||||
/// </summary>
|
||||
public float lineWidth
|
||||
{
|
||||
@@ -100,7 +100,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the gap of container and guild line.
|
||||
/// |视觉引导线和容器的间距。
|
||||
/// ||视觉引导线和容器的间距。
|
||||
/// </summary>
|
||||
public float lineGap
|
||||
{
|
||||
@@ -109,7 +109,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The length of the first segment of visual guide line.
|
||||
/// |视觉引导线第一段的长度。
|
||||
/// ||视觉引导线第一段的长度。
|
||||
/// </summary>
|
||||
public float lineLength1
|
||||
{
|
||||
@@ -118,7 +118,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The length of the second segment of visual guide line.
|
||||
/// |视觉引导线第二段的长度。
|
||||
/// ||视觉引导线第二段的长度。
|
||||
/// </summary>
|
||||
public float lineLength2
|
||||
{
|
||||
@@ -127,7 +127,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The fixed x position of the end point of visual guide line.
|
||||
/// |视觉引导线结束点的固定x位置。当不为0时,会代替lineLength2设定引导线的x位置。
|
||||
/// ||视觉引导线结束点的固定x位置。当不为0时,会代替lineLength2设定引导线的x位置。
|
||||
/// </summary>
|
||||
public float lineEndX
|
||||
{
|
||||
@@ -136,7 +136,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The symbol of the start point of labelline.
|
||||
/// |起始点的图形标记。
|
||||
/// ||起始点的图形标记。
|
||||
/// </summary>
|
||||
public SymbolStyle startSymbol
|
||||
{
|
||||
@@ -145,7 +145,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The symbol of the end point of labelline.
|
||||
/// |结束点的图形标记。
|
||||
/// ||结束点的图形标记。
|
||||
/// </summary>
|
||||
public SymbolStyle endSymbol
|
||||
{
|
||||
|
||||
@@ -5,66 +5,66 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Text label of chart, to explain some data information about graphic item like value, name and so on.
|
||||
/// |图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
|
||||
/// ||图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class LabelStyle : ChildComponent, ISerieComponent, ISerieDataComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// The position of label.
|
||||
/// |标签的位置。
|
||||
/// ||标签的位置。
|
||||
/// </summary>
|
||||
public enum Position
|
||||
{
|
||||
Default,
|
||||
/// <summary>
|
||||
/// Outside of sectors of pie chart, which relates to corresponding sector through visual guide line.
|
||||
/// |饼图扇区外侧,通过视觉引导线连到相应的扇区。
|
||||
/// ||饼图扇区外侧,通过视觉引导线连到相应的扇区。
|
||||
/// </summary>
|
||||
Outside,
|
||||
/// <summary>
|
||||
/// Inside the sectors of pie chart.
|
||||
/// |饼图扇区内部。
|
||||
/// ||饼图扇区内部。
|
||||
/// </summary>
|
||||
Inside,
|
||||
/// <summary>
|
||||
/// In the center of pie chart.
|
||||
/// |在饼图中心位置。
|
||||
/// ||在饼图中心位置。
|
||||
/// </summary>
|
||||
Center,
|
||||
/// <summary>
|
||||
/// top of symbol.
|
||||
/// |图形标志的顶部。
|
||||
/// ||图形标志的顶部。
|
||||
/// </summary>
|
||||
Top,
|
||||
/// <summary>
|
||||
/// the bottom of symbol.
|
||||
/// |图形标志的底部。
|
||||
/// ||图形标志的底部。
|
||||
/// </summary>
|
||||
Bottom,
|
||||
/// <summary>
|
||||
/// the left of symbol.
|
||||
/// |图形标志的左边。
|
||||
/// ||图形标志的左边。
|
||||
/// </summary>
|
||||
Left,
|
||||
/// <summary>
|
||||
/// the right of symbol.
|
||||
/// |图形标志的右边。
|
||||
/// ||图形标志的右边。
|
||||
/// </summary>
|
||||
Right,
|
||||
/// <summary>
|
||||
/// the start of line.
|
||||
/// |线的起始点。
|
||||
/// ||线的起始点。
|
||||
/// </summary>
|
||||
Start,
|
||||
/// <summary>
|
||||
/// the middle of line.
|
||||
/// |线的中点。
|
||||
/// ||线的中点。
|
||||
/// </summary>
|
||||
Middle,
|
||||
/// <summary>
|
||||
/// the end of line.
|
||||
/// |线的结束点。
|
||||
/// ||线的结束点。
|
||||
/// </summary>
|
||||
End
|
||||
}
|
||||
@@ -102,7 +102,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether the label is showed.
|
||||
/// |是否显示文本标签。
|
||||
/// ||是否显示文本标签。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -111,7 +111,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The position of label.
|
||||
/// |标签的位置。
|
||||
/// ||标签的位置。
|
||||
/// </summary>
|
||||
public Position position
|
||||
{
|
||||
@@ -120,7 +120,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// formatter of label.
|
||||
/// |标签内容字符串模版格式器。支持用 \n 换行。
|
||||
/// ||标签内容字符串模版格式器。支持用 \n 换行。
|
||||
/// 模板变量有:
|
||||
/// {.}:圆点标记。
|
||||
/// {a}:系列名。
|
||||
@@ -139,7 +139,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// offset to the host graphic element.
|
||||
/// |距离图形元素的偏移
|
||||
/// ||距离图形元素的偏移
|
||||
/// </summary>
|
||||
public Vector3 offset
|
||||
{
|
||||
@@ -148,7 +148,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Rotation of label.
|
||||
/// |文本的旋转。
|
||||
/// ||文本的旋转。
|
||||
/// </summary>
|
||||
public float rotate
|
||||
{
|
||||
@@ -157,7 +157,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// auto rotate of label.
|
||||
/// |是否自动旋转。
|
||||
/// ||是否自动旋转。
|
||||
/// </summary>
|
||||
public bool autoRotate
|
||||
{
|
||||
@@ -174,7 +174,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the width of label. If set as default value 0, it means than the label width auto set as the text width.
|
||||
/// |标签的宽度。一般不用指定,不指定时则自动是文字的宽度。
|
||||
/// ||标签的宽度。一般不用指定,不指定时则自动是文字的宽度。
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public float width
|
||||
@@ -184,7 +184,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the height of label. If set as default value 0, it means than the label height auto set as the text height.
|
||||
/// |标签的高度。一般不用指定,不指定时则自动是文字的高度。
|
||||
/// ||标签的高度。一般不用指定,不指定时则自动是文字的高度。
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public float height
|
||||
@@ -194,7 +194,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the text padding of label.
|
||||
/// |文本的边距。
|
||||
/// ||文本的边距。
|
||||
/// </summary>
|
||||
public TextPadding textPadding
|
||||
{
|
||||
@@ -203,7 +203,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Standard numeric format strings.
|
||||
/// |标准数字格式字符串。用于将数值格式化显示为字符串。
|
||||
/// ||标准数字格式字符串。用于将数值格式化显示为字符串。
|
||||
/// 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。
|
||||
/// 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
|
||||
/// </summary>
|
||||
@@ -223,7 +223,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the sytle of background.
|
||||
/// |背景图样式。
|
||||
/// ||背景图样式。
|
||||
/// </summary>
|
||||
public ImageStyle background
|
||||
{
|
||||
@@ -232,7 +232,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the sytle of icon.
|
||||
/// |图标样式。
|
||||
/// ||图标样式。
|
||||
/// </summary>
|
||||
public IconStyle icon
|
||||
{
|
||||
@@ -241,7 +241,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the sytle of text.
|
||||
/// |文本样式。
|
||||
/// ||文本样式。
|
||||
/// </summary>
|
||||
public TextStyle textStyle
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Legend component.The legend component shows different sets of tags, colors, and names.
|
||||
/// You can control which series are not displayed by clicking on the legend.
|
||||
/// |图例组件。
|
||||
/// ||图例组件。
|
||||
/// 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
@@ -50,7 +50,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
|
||||
/// |图例选择的模式,控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
|
||||
/// ||图例选择的模式,控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
|
||||
/// </summary>
|
||||
public enum SelectedMode
|
||||
{
|
||||
@@ -92,7 +92,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show legend component.
|
||||
/// |是否显示图例组件。
|
||||
/// ||是否显示图例组件。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -101,7 +101,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Type of legend.
|
||||
/// |图例类型。
|
||||
/// ||图例类型。
|
||||
/// </summary>
|
||||
public Type iconType
|
||||
{
|
||||
@@ -110,7 +110,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
|
||||
/// |选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
|
||||
/// ||选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
|
||||
/// </summary>
|
||||
public SelectedMode selectedMode
|
||||
{
|
||||
@@ -119,7 +119,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Specify whether the layout of legend component is horizontal or vertical.
|
||||
/// |布局方式是横还是竖。
|
||||
/// ||布局方式是横还是竖。
|
||||
/// </summary>
|
||||
public Orient orient
|
||||
{
|
||||
@@ -128,7 +128,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The location of legend.
|
||||
/// |图例显示的位置。
|
||||
/// ||图例显示的位置。
|
||||
/// </summary>
|
||||
public Location location
|
||||
{
|
||||
@@ -137,7 +137,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Image width of legend symbol.
|
||||
/// |图例标记的图形宽度。
|
||||
/// ||图例标记的图形宽度。
|
||||
/// </summary>
|
||||
public float itemWidth
|
||||
{
|
||||
@@ -146,7 +146,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Image height of legend symbol.
|
||||
/// |图例标记的图形高度。
|
||||
/// ||图例标记的图形高度。
|
||||
/// </summary>
|
||||
public float itemHeight
|
||||
{
|
||||
@@ -155,7 +155,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout.
|
||||
/// |图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。
|
||||
/// ||图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。
|
||||
/// </summary>
|
||||
public float itemGap
|
||||
{
|
||||
@@ -164,7 +164,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the legend symbol matches the color automatically.
|
||||
/// |图例标记的图形是否自动匹配颜色。
|
||||
/// ||图例标记的图形是否自动匹配颜色。
|
||||
/// </summary>
|
||||
public bool itemAutoColor
|
||||
{
|
||||
@@ -173,7 +173,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the opacity of item color.
|
||||
/// |图例标记的图形的颜色透明度。
|
||||
/// ||图例标记的图形的颜色透明度。
|
||||
/// </summary>
|
||||
public float itemOpacity
|
||||
{
|
||||
@@ -182,7 +182,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Standard numeric format strings.
|
||||
/// |标准数字格式字符串。用于将数值格式化显示为字符串。
|
||||
/// ||标准数字格式字符串。用于将数值格式化显示为字符串。
|
||||
/// 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。
|
||||
/// 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
|
||||
/// </summary>
|
||||
@@ -193,7 +193,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Legend content string template formatter. Support for wrapping lines with \n. Template:{value}.
|
||||
/// |图例内容字符串模版格式器。支持用 \n 换行。
|
||||
/// ||图例内容字符串模版格式器。支持用 \n 换行。
|
||||
/// 模板变量为图例名称 {value}。其他模板变量参考Toolip的itemFormatter。
|
||||
/// </summary>
|
||||
public string formatter
|
||||
@@ -203,7 +203,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the style of text.
|
||||
/// |文本样式。
|
||||
/// ||文本样式。
|
||||
/// </summary>
|
||||
public LabelStyle labelStyle
|
||||
{
|
||||
@@ -212,7 +212,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the sytle of background.
|
||||
/// |背景图样式。
|
||||
/// ||背景图样式。
|
||||
/// </summary>
|
||||
public ImageStyle background
|
||||
{
|
||||
@@ -221,7 +221,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the paddinng of item and background.
|
||||
/// |图例标记和背景的间距。
|
||||
/// ||图例标记和背景的间距。
|
||||
/// </summary>
|
||||
public Padding padding
|
||||
{
|
||||
@@ -232,7 +232,7 @@ namespace XCharts.Runtime
|
||||
/// Data array of legend. An array item is usually a name representing string. (If it is a pie chart,
|
||||
/// it could also be the name of a single data in the pie chart) of a series.
|
||||
/// If data is not specified, it will be auto collected from series.
|
||||
/// |图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。
|
||||
/// ||图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。
|
||||
/// 如果 data 没有被指定,会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。
|
||||
/// </summary>
|
||||
public List<string> data
|
||||
@@ -250,7 +250,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the colors of legend item.
|
||||
/// |图例标记的颜色列表。
|
||||
/// ||图例标记的颜色列表。
|
||||
/// </summary>
|
||||
public List<Color> colors
|
||||
{
|
||||
@@ -259,7 +259,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the custom positions of legend item.
|
||||
/// |图例标记的自定义位置列表。
|
||||
/// ||图例标记的自定义位置列表。
|
||||
/// </summary>
|
||||
public List<Vector3> positions
|
||||
{
|
||||
@@ -287,7 +287,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Clear legend data.
|
||||
/// |清空。
|
||||
/// ||清空。
|
||||
/// </summary>
|
||||
public override void ClearData()
|
||||
{
|
||||
@@ -297,7 +297,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether include in legend data by the specified name.
|
||||
/// |是否包括由指定名字的图例
|
||||
/// ||是否包括由指定名字的图例
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <returns></returns>
|
||||
@@ -308,7 +308,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Removes the legend with the specified name.
|
||||
/// |移除指定名字的图例。
|
||||
/// ||移除指定名字的图例。
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
public void RemoveData(string name)
|
||||
@@ -322,7 +322,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add legend data.
|
||||
/// |添加图例。
|
||||
/// ||添加图例。
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
public void AddData(string name)
|
||||
@@ -336,7 +336,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Gets the legend for the specified index.
|
||||
/// |获得指定索引的图例。
|
||||
/// ||获得指定索引的图例。
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
/// <returns></returns>
|
||||
@@ -351,7 +351,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Gets the index of the specified legend.
|
||||
/// |获得指定图例的索引。
|
||||
/// ||获得指定图例的索引。
|
||||
/// </summary>
|
||||
/// <param name="legendName"></param>
|
||||
/// <returns></returns>
|
||||
@@ -362,7 +362,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Remove all legend buttons.
|
||||
/// |移除所有图例按钮。
|
||||
/// ||移除所有图例按钮。
|
||||
/// </summary>
|
||||
public void RemoveButton()
|
||||
{
|
||||
@@ -371,7 +371,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Bind buttons to legends.
|
||||
/// |给图例绑定按钮。
|
||||
/// ||给图例绑定按钮。
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="btn"></param>
|
||||
@@ -386,7 +386,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Update the legend button color.
|
||||
/// |更新图例按钮颜色。
|
||||
/// ||更新图例按钮颜色。
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="color"></param>
|
||||
@@ -400,7 +400,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Update the text color of legend.
|
||||
/// |更新图例文字颜色。
|
||||
/// ||更新图例文字颜色。
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="color"></param>
|
||||
@@ -414,7 +414,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Gets the legend button for the specified index.
|
||||
/// |获得指定索引的图例按钮。
|
||||
/// ||获得指定索引的图例按钮。
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
/// <returns></returns>
|
||||
@@ -448,7 +448,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Callback handling when parameters change.
|
||||
/// |参数变更时的回调处理。
|
||||
/// ||参数变更时的回调处理。
|
||||
/// </summary>
|
||||
public void OnChanged()
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace XCharts.Runtime
|
||||
public Vector2 center { get; internal set; }
|
||||
/// <summary>
|
||||
/// the button list of legend.
|
||||
/// |图例按钮列表。
|
||||
/// ||图例按钮列表。
|
||||
/// </summary>
|
||||
internal Dictionary<string, LegendItem> buttonList = new Dictionary<string, LegendItem>();
|
||||
/// <summary>
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Used to mark an area in chart. For example, mark a time interval.
|
||||
/// |图表标域,常用于标记图表中某个范围的数据。
|
||||
/// ||图表标域,常用于标记图表中某个范围的数据。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[ComponentHandler(typeof(MarkAreaHandler), true)]
|
||||
@@ -127,7 +127,7 @@ namespace XCharts.Runtime
|
||||
public double runtimeValue { get; internal set; }
|
||||
/// <summary>
|
||||
/// Name of the marker, which will display as a label.
|
||||
/// |标注名称。会作为文字显示。
|
||||
/// ||标注名称。会作为文字显示。
|
||||
/// </summary>
|
||||
public string name
|
||||
{
|
||||
@@ -136,7 +136,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Special markArea types, are used to label maximum value, minimum value and so on.
|
||||
/// |特殊的标域类型,用于标注最大值最小值等。
|
||||
/// ||特殊的标域类型,用于标注最大值最小值等。
|
||||
/// </summary>
|
||||
public MarkAreaType type
|
||||
{
|
||||
@@ -145,7 +145,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// From which dimension of data to calculate the maximum and minimum value and so on.
|
||||
/// |从哪个维度的数据计算最大最小值等。
|
||||
/// ||从哪个维度的数据计算最大最小值等。
|
||||
/// </summary>
|
||||
public int dimension
|
||||
{
|
||||
@@ -154,7 +154,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The x coordinate relative to the origin, in pixels.
|
||||
/// |相对原点的 x 坐标,单位像素。当type为None时有效。
|
||||
/// ||相对原点的 x 坐标,单位像素。当type为None时有效。
|
||||
/// </summary>
|
||||
public float xPosition
|
||||
{
|
||||
@@ -163,7 +163,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The y coordinate relative to the origin, in pixels.
|
||||
/// |相对原点的 y 坐标,单位像素。当type为None时有效。
|
||||
/// ||相对原点的 y 坐标,单位像素。当type为None时有效。
|
||||
/// </summary>
|
||||
public float yPosition
|
||||
{
|
||||
@@ -172,7 +172,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The value specified on the X-axis. A value specified when the X-axis is the category axis represents the index of the category axis data, otherwise a specific value.
|
||||
/// |X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
|
||||
/// ||X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
|
||||
/// </summary>
|
||||
public double xValue
|
||||
{
|
||||
@@ -181,7 +181,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// That's the value on the Y-axis. The value specified when the Y axis is the category axis represents the index of the category axis data, otherwise the specific value.
|
||||
/// |Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
|
||||
/// ||Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
|
||||
/// </summary>
|
||||
public double yValue
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Use a line in the chart to illustrate.
|
||||
/// |图表标线。
|
||||
/// ||图表标线。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[ComponentHandler(typeof(MarkLineHandler), true)]
|
||||
@@ -43,7 +43,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to display the marking line.
|
||||
/// |是否显示标线。
|
||||
/// ||是否显示标线。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The serie index of markLine.
|
||||
/// |标线影响的Serie索引。
|
||||
/// ||标线影响的Serie索引。
|
||||
/// </summary>
|
||||
public int serieIndex
|
||||
{
|
||||
@@ -61,7 +61,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// whether the markline is on top.
|
||||
/// |是否在最上层。
|
||||
/// ||是否在最上层。
|
||||
/// </summary>
|
||||
public bool onTop
|
||||
{
|
||||
@@ -70,7 +70,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The animation of markline.
|
||||
/// |标线的动画样式。
|
||||
/// ||标线的动画样式。
|
||||
/// </summary>
|
||||
public AnimationStyle animation
|
||||
{
|
||||
@@ -82,7 +82,7 @@ namespace XCharts.Runtime
|
||||
/// When the group is not 0, two data items of the same group represent the starting point and
|
||||
/// the ending point of the line respectively to form a line. In this case, the relevant style
|
||||
/// parameters of the line are the parameters of the starting point.
|
||||
/// |标线的数据列表。当数据项的group为0时,每个数据项表示一条标线;当group不为0时,相同group的两个数据项分别表
|
||||
/// ||标线的数据列表。当数据项的group为0时,每个数据项表示一条标线;当group不为0时,相同group的两个数据项分别表
|
||||
/// 示标线的起始点和终止点来组成一条标线,此时标线的相关样式参数取起始点的参数。
|
||||
/// </summary>
|
||||
public List<MarkLineData> data
|
||||
@@ -113,7 +113,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Data of marking line.
|
||||
/// |图表标线的数据。
|
||||
/// ||图表标线的数据。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class MarkLineData : ChildComponent
|
||||
@@ -143,7 +143,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Name of the marker, which will display as a label.
|
||||
/// |标线名称,将会作为文字显示。label的formatter可通过{b}显示名称,通过{c}显示数值。
|
||||
/// ||标线名称,将会作为文字显示。label的formatter可通过{b}显示名称,通过{c}显示数值。
|
||||
/// </summary>
|
||||
public string name
|
||||
{
|
||||
@@ -152,7 +152,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Special label types, are used to label maximum value, minimum value and so on.
|
||||
/// |特殊的标线类型,用于标注最大值最小值等。
|
||||
/// ||特殊的标线类型,用于标注最大值最小值等。
|
||||
/// </summary>
|
||||
public MarkLineType type
|
||||
{
|
||||
@@ -161,7 +161,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// From which dimension of data to calculate the maximum and minimum value and so on.
|
||||
/// |从哪个维度的数据计算最大最小值等。
|
||||
/// ||从哪个维度的数据计算最大最小值等。
|
||||
/// </summary>
|
||||
public int dimension
|
||||
{
|
||||
@@ -170,7 +170,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The x coordinate relative to the origin, in pixels.
|
||||
/// |相对原点的 x 坐标,单位像素。当type为None时有效。
|
||||
/// ||相对原点的 x 坐标,单位像素。当type为None时有效。
|
||||
/// </summary>
|
||||
public float xPosition
|
||||
{
|
||||
@@ -179,7 +179,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The y coordinate relative to the origin, in pixels.
|
||||
/// |相对原点的 y 坐标,单位像素。当type为None时有效。
|
||||
/// ||相对原点的 y 坐标,单位像素。当type为None时有效。
|
||||
/// </summary>
|
||||
public float yPosition
|
||||
{
|
||||
@@ -188,7 +188,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The value specified on the X-axis. A value specified when the X-axis is the category axis represents the index of the category axis data, otherwise a specific value.
|
||||
/// |X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
|
||||
/// ||X轴上的指定值。当X轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
|
||||
/// </summary>
|
||||
public double xValue
|
||||
{
|
||||
@@ -197,7 +197,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// That's the value on the Y-axis. The value specified when the Y axis is the category axis represents the index of the category axis data, otherwise the specific value.
|
||||
/// |Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
|
||||
/// ||Y轴上的指定值。当Y轴为类目轴时指定值表示类目轴数据的索引,否则为具体的值。当type为None时有效。
|
||||
/// </summary>
|
||||
public double yValue
|
||||
{
|
||||
@@ -206,7 +206,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Grouping. When the group is not 0, it means that this data is the starting point or end point of the marking line. Data consistent with the group form a marking line.
|
||||
/// |分组。当group不为0时,表示这个data是标线的起点或终点,group一致的data组成一条标线。
|
||||
/// ||分组。当group不为0时,表示这个data是标线的起点或终点,group一致的data组成一条标线。
|
||||
/// </summary>
|
||||
public int group
|
||||
{
|
||||
@@ -215,7 +215,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Is the origin of the coordinate system.
|
||||
/// |是否为坐标系原点。
|
||||
/// ||是否为坐标系原点。
|
||||
/// </summary>
|
||||
public bool zeroPosition
|
||||
{
|
||||
@@ -224,7 +224,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The symbol of the start point of markline.
|
||||
/// |起始点的图形标记。
|
||||
/// ||起始点的图形标记。
|
||||
/// </summary>
|
||||
public SymbolStyle startSymbol
|
||||
{
|
||||
@@ -233,7 +233,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The symbol of the end point of markline.
|
||||
/// |结束点的图形标记。
|
||||
/// ||结束点的图形标记。
|
||||
/// </summary>
|
||||
public SymbolStyle endSymbol
|
||||
{
|
||||
@@ -242,7 +242,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The line style of markline.
|
||||
/// |标线样式。
|
||||
/// ||标线样式。
|
||||
/// </summary>
|
||||
public LineStyle lineStyle
|
||||
{
|
||||
@@ -251,7 +251,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Text styles of label. You can set position to Start, Middle, and End to display text in different locations.
|
||||
/// |文本样式。可设置position为Start、Middle和End在不同的位置显示文本。
|
||||
/// ||文本样式。可设置position为Start、Middle和End在不同的位置显示文本。
|
||||
/// </summary>
|
||||
public LabelStyle label
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Radar render type, in which 'Polygon' and 'Circle' are supported.
|
||||
/// |雷达图绘制类型,支持 'Polygon' 和 'Circle'。
|
||||
/// ||雷达图绘制类型,支持 'Polygon' 和 'Circle'。
|
||||
/// </summary>
|
||||
public enum Shape
|
||||
{
|
||||
@@ -24,24 +24,24 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The position type of radar.
|
||||
/// |显示位置。
|
||||
/// ||显示位置。
|
||||
/// </summary>
|
||||
public enum PositionType
|
||||
{
|
||||
/// <summary>
|
||||
/// Display at the vertex.
|
||||
/// |显示在顶点处。
|
||||
/// ||显示在顶点处。
|
||||
/// </summary>
|
||||
Vertice,
|
||||
/// <summary>
|
||||
/// Display at the middle of line.
|
||||
/// |显示在两者之间。
|
||||
/// ||显示在两者之间。
|
||||
/// </summary>
|
||||
Between,
|
||||
}
|
||||
/// <summary>
|
||||
/// Indicator of radar chart, which is used to assign multiple variables(dimensions) in radar chart.
|
||||
/// |雷达图的指示器,用来指定雷达图中的多个变量(维度)。
|
||||
/// ||雷达图的指示器,用来指定雷达图中的多个变量(维度)。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class Indicator
|
||||
@@ -53,27 +53,27 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The name of indicator.
|
||||
/// |指示器名称。
|
||||
/// ||指示器名称。
|
||||
/// </summary>
|
||||
public string name { get { return m_Name; } set { m_Name = value; } }
|
||||
/// <summary>
|
||||
/// The maximum value of indicator, with default value of 0, but we recommend to set it manually.
|
||||
/// |指示器的最大值,默认为 0 无限制。
|
||||
/// ||指示器的最大值,默认为 0 无限制。
|
||||
/// </summary>
|
||||
public double max { get { return m_Max; } set { m_Max = value; } }
|
||||
/// <summary>
|
||||
/// The minimum value of indicator, with default value of 0.
|
||||
/// |指示器的最小值,默认为 0 无限制。
|
||||
/// ||指示器的最小值,默认为 0 无限制。
|
||||
/// </summary>
|
||||
public double min { get { return m_Min; } set { m_Min = value; } }
|
||||
/// <summary>
|
||||
/// the text conponent of indicator.
|
||||
/// |指示器的文本组件。
|
||||
/// ||指示器的文本组件。
|
||||
/// </summary>
|
||||
public Text text { get; set; }
|
||||
/// <summary>
|
||||
/// Normal range. When the value is outside this range, the display color is automatically changed.
|
||||
/// |正常值范围。当数值不在这个范围时,会自动变更显示颜色。
|
||||
/// ||正常值范围。当数值不在这个范围时,会自动变更显示颜色。
|
||||
/// </summary>
|
||||
public double[] range
|
||||
{
|
||||
@@ -117,12 +117,12 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// [default:true]
|
||||
/// Set this to false to prevent the radar from showing.
|
||||
/// |是否显示雷达坐标系组件。
|
||||
/// ||是否显示雷达坐标系组件。
|
||||
/// </summary>
|
||||
public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } }
|
||||
/// <summary>
|
||||
/// Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component.
|
||||
/// |所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。
|
||||
/// ||所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。
|
||||
/// </summary>
|
||||
public int gridIndex
|
||||
{
|
||||
@@ -131,7 +131,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Radar render type, in which 'Polygon' and 'Circle' are supported.
|
||||
/// |雷达图绘制类型,支持 'Polygon' 和 'Circle'。
|
||||
/// ||雷达图绘制类型,支持 'Polygon' 和 'Circle'。
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public Shape shape
|
||||
@@ -141,7 +141,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the radius of radar.
|
||||
/// |雷达图的半径。
|
||||
/// ||雷达图的半径。
|
||||
/// </summary>
|
||||
public float radius
|
||||
{
|
||||
@@ -150,7 +150,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Segments of indicator axis.
|
||||
/// |指示器轴的分割段数。
|
||||
/// ||指示器轴的分割段数。
|
||||
/// </summary>
|
||||
public int splitNumber
|
||||
{
|
||||
@@ -159,7 +159,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the center of radar chart.
|
||||
/// |雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。
|
||||
/// ||雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。
|
||||
/// 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。
|
||||
/// </summary>
|
||||
public float[] center
|
||||
@@ -169,7 +169,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// axis line.
|
||||
/// |轴线。
|
||||
/// ||轴线。
|
||||
/// </summary>
|
||||
public AxisLine axisLine
|
||||
{
|
||||
@@ -178,7 +178,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Name options for radar indicators.
|
||||
/// |雷达图每个指示器名称的配置项。
|
||||
/// ||雷达图每个指示器名称的配置项。
|
||||
/// </summary>
|
||||
public AxisName axisName
|
||||
{
|
||||
@@ -187,7 +187,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// split line.
|
||||
/// |分割线。
|
||||
/// ||分割线。
|
||||
/// </summary>
|
||||
public AxisSplitLine splitLine
|
||||
{
|
||||
@@ -196,7 +196,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Split area of axis in grid area.
|
||||
/// |分割区域。
|
||||
/// ||分割区域。
|
||||
/// </summary>
|
||||
public AxisSplitArea splitArea
|
||||
{
|
||||
@@ -205,7 +205,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to show indicator.
|
||||
/// |是否显示指示器。
|
||||
/// ||是否显示指示器。
|
||||
/// </summary>
|
||||
public bool indicator
|
||||
{
|
||||
@@ -214,7 +214,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The gap of indicator and radar.
|
||||
/// |指示器和雷达的间距。
|
||||
/// ||指示器和雷达的间距。
|
||||
/// </summary>
|
||||
public float indicatorGap
|
||||
{
|
||||
@@ -223,7 +223,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated.
|
||||
/// |最大最小值向上取整的倍率。默认为0时自动计算。
|
||||
/// ||最大最小值向上取整的倍率。默认为0时自动计算。
|
||||
/// </summary>
|
||||
public double ceilRate
|
||||
{
|
||||
@@ -240,7 +240,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The position type of indicator.
|
||||
/// |显示位置类型。
|
||||
/// ||显示位置类型。
|
||||
/// </summary>
|
||||
public PositionType positionType
|
||||
{
|
||||
@@ -249,7 +249,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The color displayed when data out of range.
|
||||
/// |数值超出范围时显示的颜色。
|
||||
/// ||数值超出范围时显示的颜色。
|
||||
/// </summary>
|
||||
public Color32 outRangeColor
|
||||
{
|
||||
@@ -258,7 +258,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether serie data connect to radar center with line.
|
||||
/// |数值是否连线到中心点。
|
||||
/// ||数值是否连线到中心点。
|
||||
/// </summary>
|
||||
public bool connectCenter
|
||||
{
|
||||
@@ -267,7 +267,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether need gradient for data line.
|
||||
/// |数值线段是否需要渐变。
|
||||
/// ||数值线段是否需要渐变。
|
||||
/// </summary>
|
||||
public bool lineGradient
|
||||
{
|
||||
@@ -284,7 +284,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the indicator list.
|
||||
/// |指示器列表。
|
||||
/// ||指示器列表。
|
||||
/// </summary>
|
||||
public List<Indicator> indicatorList { get { return m_IndicatorList; } }
|
||||
|
||||
|
||||
@@ -8,12 +8,12 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// the center position of radar in container.
|
||||
/// |雷达图在容器中的具体中心点。
|
||||
/// ||雷达图在容器中的具体中心点。
|
||||
/// </summary>
|
||||
public Vector3 center { get; internal set; }
|
||||
/// <summary>
|
||||
/// the true radius of radar.
|
||||
/// |雷达图的运行时实际半径。
|
||||
/// ||雷达图的运行时实际半径。
|
||||
/// </summary>
|
||||
public float radius { get; internal set; }
|
||||
public float dataRadius { get; internal set; }
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Global parameter setting component. The default value can be used in general, and can be adjusted when necessary.
|
||||
/// |全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。
|
||||
/// ||全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class Settings : MainComponent
|
||||
@@ -28,7 +28,7 @@ namespace XCharts.Runtime
|
||||
public bool show { get { return m_Show; } }
|
||||
/// <summary>
|
||||
/// max painter.
|
||||
/// |设定的painter数量。
|
||||
/// ||设定的painter数量。
|
||||
/// </summary>
|
||||
public int maxPainter
|
||||
{
|
||||
@@ -78,7 +78,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Curve smoothing factor. By adjusting the smoothing coefficient, the curvature of the curve can be changed,
|
||||
/// and different curves with slightly different appearance can be obtained.
|
||||
/// |曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。
|
||||
/// ||曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。
|
||||
/// </summary>
|
||||
public float lineSmoothStyle
|
||||
{
|
||||
@@ -87,8 +87,8 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Smoothness of curve. The smaller the value, the smoother the curve, but the number of vertices will increase.
|
||||
/// |When the area with gradient is filled, the larger the value, the worse the transition effect.
|
||||
/// |曲线平滑度。值越小曲线越平滑,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。
|
||||
/// ||When the area with gradient is filled, the larger the value, the worse the transition effect.
|
||||
/// ||曲线平滑度。值越小曲线越平滑,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public float lineSmoothness
|
||||
@@ -100,7 +100,7 @@ namespace XCharts.Runtime
|
||||
/// The partition distance of a line segment. A line in a normal line chart is made up of many segments,
|
||||
/// the number of which is determined by the change in value. The smaller the number of segments,
|
||||
/// the higher the number of vertices. When the area with gradient is filled, the larger the value, the worse the transition effect.
|
||||
/// |线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。
|
||||
/// ||线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public float lineSegmentDistance
|
||||
@@ -110,7 +110,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the smoothess of cricle.
|
||||
/// |圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。
|
||||
/// ||圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。
|
||||
/// </summary>
|
||||
public float cicleSmoothness
|
||||
{
|
||||
@@ -120,7 +120,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the width of line serie legend.
|
||||
/// |Line类型图例图标的线条宽度。
|
||||
/// ||Line类型图例图标的线条宽度。
|
||||
/// </summary>
|
||||
public float legendIconLineWidth
|
||||
{
|
||||
@@ -130,7 +130,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)).
|
||||
/// |图例圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。
|
||||
/// ||图例圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。
|
||||
/// </summary>
|
||||
public float[] legendIconCornerRadius
|
||||
{
|
||||
@@ -140,7 +140,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the max splitnumber of axis.
|
||||
/// |坐标轴最大分隔段数。段数过大时可能会生成较多的label节点。
|
||||
/// ||坐标轴最大分隔段数。段数过大时可能会生成较多的label节点。
|
||||
/// </summary>
|
||||
public float axisMaxSplitNumber
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Configurations of blur state.
|
||||
/// |淡出状态样式。
|
||||
/// ||淡出状态样式。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[Since("v3.2.0")]
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Configurations of emphasis state.
|
||||
/// |高亮状态样式。
|
||||
/// ||高亮状态样式。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[Since("v3.2.0")]
|
||||
@@ -12,45 +12,45 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// focus type.
|
||||
/// |聚焦类型。
|
||||
/// ||聚焦类型。
|
||||
/// </summary>
|
||||
public enum FocusType
|
||||
{
|
||||
/// <summary>
|
||||
/// Do not fade out other data, it's by default.
|
||||
/// |不淡出其它图形,默认使用该配置。
|
||||
/// ||不淡出其它图形,默认使用该配置。
|
||||
/// </summary>
|
||||
None,
|
||||
/// <summary>
|
||||
/// Only focus (not fade out) the element of the currently highlighted data.
|
||||
/// |只聚焦(不淡出)当前高亮的数据的图形。
|
||||
/// ||只聚焦(不淡出)当前高亮的数据的图形。
|
||||
/// </summary>
|
||||
Self,
|
||||
/// <summary>
|
||||
/// Focus on all elements of the series which the currently highlighted data belongs to.
|
||||
/// |聚焦当前高亮的数据所在的系列的所有图形。
|
||||
/// ||聚焦当前高亮的数据所在的系列的所有图形。
|
||||
/// </summary>
|
||||
Series
|
||||
}
|
||||
/// <summary>
|
||||
/// blur scope.
|
||||
/// |淡出范围。
|
||||
/// ||淡出范围。
|
||||
/// </summary>
|
||||
public enum BlurScope
|
||||
{
|
||||
/// <summary>
|
||||
/// coordinate system.
|
||||
/// |淡出范围为坐标系,默认使用该配置。
|
||||
/// ||淡出范围为坐标系,默认使用该配置。
|
||||
/// </summary>
|
||||
GridCoord,
|
||||
/// <summary>
|
||||
/// series.
|
||||
/// |淡出范围为系列。
|
||||
/// ||淡出范围为系列。
|
||||
/// </summary>
|
||||
Series,
|
||||
/// <summary>
|
||||
/// global.
|
||||
/// |淡出范围为全局。
|
||||
/// ||淡出范围为全局。
|
||||
/// </summary>
|
||||
Global
|
||||
}
|
||||
@@ -61,7 +61,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to scale to highlight the data in emphasis state.
|
||||
/// |高亮时的缩放倍数。
|
||||
/// ||高亮时的缩放倍数。
|
||||
/// </summary>
|
||||
public float scale
|
||||
{
|
||||
@@ -70,7 +70,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// When the data is highlighted, whether to fade out of other data to focus the highlighted.
|
||||
/// |在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。
|
||||
/// ||在高亮图形时,是否淡出其它数据的图形已达到聚焦的效果。
|
||||
/// </summary>
|
||||
public FocusType focus
|
||||
{
|
||||
@@ -79,7 +79,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The range of fade out when focus is enabled.
|
||||
/// |在开启focus的时候,可以通过blurScope配置淡出的范围。
|
||||
/// ||在开启focus的时候,可以通过blurScope配置淡出的范围。
|
||||
/// </summary>
|
||||
public BlurScope blurScope
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Configurations of select state.
|
||||
/// |选中状态样式。
|
||||
/// ||选中状态样式。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[Since("v3.2.0")]
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// the state style of serie.
|
||||
/// |Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种状态。
|
||||
/// ||Serie的状态样式。Serie的状态有正常,高亮,淡出,选中四种状态。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[Since("v3.2.0")]
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Title component, including main title and subtitle.
|
||||
/// |标题组件,包含主标题和副标题。
|
||||
/// ||标题组件,包含主标题和副标题。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[ComponentHandler(typeof(TitleHander), true)]
|
||||
@@ -22,17 +22,17 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// [default:true]
|
||||
/// Set this to false to prevent the title from showing.
|
||||
/// |是否显示标题组件。
|
||||
/// ||是否显示标题组件。
|
||||
/// </summary>
|
||||
public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } }
|
||||
/// <summary>
|
||||
/// The main title text, supporting \n for newlines.
|
||||
/// |主标题文本,支持使用 \n 换行。
|
||||
/// ||主标题文本,支持使用 \n 换行。
|
||||
/// </summary>
|
||||
public string text { get { return m_Text; } set { if (PropertyUtil.SetClass(ref m_Text, value)) SetComponentDirty(); } }
|
||||
/// <summary>
|
||||
/// The text style of main title.
|
||||
/// |主标题文本样式。
|
||||
/// ||主标题文本样式。
|
||||
/// </summary>
|
||||
public LabelStyle labelStyle
|
||||
{
|
||||
@@ -41,7 +41,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Subtitle text, supporting for \n for newlines.
|
||||
/// |副标题文本,支持使用 \n 换行。
|
||||
/// ||副标题文本,支持使用 \n 换行。
|
||||
/// </summary>
|
||||
public string subText
|
||||
{
|
||||
@@ -50,7 +50,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The text style of sub title.
|
||||
/// |副标题文本样式。
|
||||
/// ||副标题文本样式。
|
||||
/// </summary>
|
||||
public LabelStyle subLabelStyle
|
||||
{
|
||||
@@ -60,7 +60,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// [default:8]
|
||||
/// The gap between the main title and subtitle.
|
||||
/// |主副标题之间的间距。
|
||||
/// ||主副标题之间的间距。
|
||||
/// </summary>
|
||||
public float itemGap
|
||||
{
|
||||
@@ -69,7 +69,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The location of title component.
|
||||
/// |标题显示位置。
|
||||
/// ||标题显示位置。
|
||||
/// </summary>
|
||||
public Location location
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// the title of serie.
|
||||
/// |标题相关设置。
|
||||
/// ||标题相关设置。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class TitleStyle : LabelStyle, ISerieDataComponent, ISerieComponent
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Tooltip component.
|
||||
/// |提示框组件。
|
||||
/// ||提示框组件。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[ComponentHandler(typeof(TooltipHandler), true)]
|
||||
@@ -14,88 +14,88 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicator type.
|
||||
/// |指示器类型。
|
||||
/// ||指示器类型。
|
||||
/// </summary>
|
||||
public enum Type
|
||||
{
|
||||
/// <summary>
|
||||
/// line indicator.
|
||||
/// |直线指示器
|
||||
/// ||直线指示器
|
||||
/// </summary>
|
||||
Line,
|
||||
/// <summary>
|
||||
/// shadow crosshair indicator.
|
||||
/// |阴影指示器
|
||||
/// ||阴影指示器
|
||||
/// </summary>
|
||||
Shadow,
|
||||
/// <summary>
|
||||
/// no indicator displayed.
|
||||
/// |无指示器
|
||||
/// ||无指示器
|
||||
/// </summary>
|
||||
None,
|
||||
/// <summary>
|
||||
/// crosshair indicator, which is actually the shortcut of enable two axisPointers of two orthometric axes.
|
||||
/// |十字准星指示器。坐标轴显示Label和交叉线。
|
||||
/// ||十字准星指示器。坐标轴显示Label和交叉线。
|
||||
/// </summary>
|
||||
Corss,
|
||||
/// <summary>
|
||||
/// Auto select indicator according to serie type.
|
||||
/// |根据serie的类型自动选择显示指示器。
|
||||
/// ||根据serie的类型自动选择显示指示器。
|
||||
/// </summary>
|
||||
Auto
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Trigger strategy.
|
||||
/// |触发类型。
|
||||
/// ||触发类型。
|
||||
/// </summary>
|
||||
public enum Trigger
|
||||
{
|
||||
/// <summary>
|
||||
/// Triggered by data item, which is mainly used for charts that don't have a category axis like scatter charts or pie charts.
|
||||
/// |数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
|
||||
/// ||数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
|
||||
/// </summary>
|
||||
Item,
|
||||
/// <summary>
|
||||
/// Triggered by axes, which is mainly used for charts that have category axes, like bar charts or line charts.
|
||||
/// |坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。
|
||||
/// ||坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。
|
||||
/// </summary>
|
||||
Axis,
|
||||
/// <summary>
|
||||
/// Trigger nothing.
|
||||
/// |什么都不触发。
|
||||
/// ||什么都不触发。
|
||||
/// </summary>
|
||||
None,
|
||||
/// <summary>
|
||||
/// Auto select trigger according to serie type.
|
||||
/// |根据serie的类型自动选择触发类型。
|
||||
/// ||根据serie的类型自动选择触发类型。
|
||||
/// </summary>
|
||||
Auto
|
||||
}
|
||||
/// <summary>
|
||||
/// Position type.
|
||||
/// |坐标类型。
|
||||
/// ||坐标类型。
|
||||
/// </summary>
|
||||
public enum Position
|
||||
{
|
||||
/// <summary>
|
||||
/// Auto. The mobile platform is displayed at the top, and the non-mobile platform follows the mouse position.
|
||||
/// |自适应。移动平台靠顶部显示,非移动平台跟随鼠标位置。
|
||||
/// ||自适应。移动平台靠顶部显示,非移动平台跟随鼠标位置。
|
||||
/// </summary>
|
||||
Auto,
|
||||
/// <summary>
|
||||
/// Custom. Fully customize display position (x,y).
|
||||
/// |自定义。完全自定义显示位置(x,y)。
|
||||
/// ||自定义。完全自定义显示位置(x,y)。
|
||||
/// </summary>
|
||||
Custom,
|
||||
/// <summary>
|
||||
/// Just fix the coordinate X. Y follows the mouse position.
|
||||
/// |只固定坐标X。Y跟随鼠标位置。
|
||||
/// ||只固定坐标X。Y跟随鼠标位置。
|
||||
/// </summary>
|
||||
FixedX,
|
||||
/// <summary>
|
||||
/// Just fix the coordinate Y. X follows the mouse position.
|
||||
/// |只固定坐标Y。X跟随鼠标位置。
|
||||
/// ||只固定坐标Y。X跟随鼠标位置。
|
||||
FixedY
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show the tooltip component.
|
||||
/// |是否显示提示框组件。
|
||||
/// ||是否显示提示框组件。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -155,7 +155,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Indicator type.
|
||||
/// |提示框指示器类型。
|
||||
/// ||提示框指示器类型。
|
||||
/// </summary>
|
||||
public Type type
|
||||
{
|
||||
@@ -164,7 +164,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Type of triggering.
|
||||
/// |触发类型。
|
||||
/// ||触发类型。
|
||||
/// </summary>
|
||||
public Trigger trigger
|
||||
{
|
||||
@@ -173,7 +173,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Type of position.
|
||||
/// |显示位置类型。
|
||||
/// ||显示位置类型。
|
||||
/// </summary>
|
||||
public Position position
|
||||
{
|
||||
@@ -184,7 +184,7 @@ namespace XCharts.Runtime
|
||||
/// The string template formatter for the tooltip title content. Support for wrapping lines with \n.
|
||||
/// The placeholder {I} can be set separately to indicate that the title is ignored and not displayed.
|
||||
/// Template see itemFormatter.
|
||||
/// |提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。
|
||||
/// ||提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。
|
||||
/// 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。<br/>
|
||||
/// {.}为当前所指示或index为0的serie的对应颜色的圆点。<br/>
|
||||
/// {a}为当前所指示或index为0的serie的系列名name。<br/>
|
||||
@@ -222,7 +222,7 @@ namespace XCharts.Runtime
|
||||
/// {d1:2: F2} indicates that a formatted string with a value specified separately is F2 (numericFormatter is used when numericFormatter is not specified).<br/>
|
||||
/// {d:0.##} indicates that a formatted string with a value specified separately is 0.## (used for percentage, reserved 2 valid digits while avoiding the situation similar to "100.00%" when using f2 ).<br/>
|
||||
/// Example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1} : {c1:1-1: f1}"<br/>
|
||||
/// |提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用|来表示多个列的分隔。
|
||||
/// ||提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。用|来表示多个列的分隔。
|
||||
/// 模板变量有{.}、{a}、{b}、{c}、{d}、{e}、{f}、{g}。<br/>
|
||||
/// {i}或-表示忽略当前项。
|
||||
/// {.}为当前所指示的serie或数据项的对应颜色的圆点。<br/>
|
||||
@@ -243,27 +243,27 @@ namespace XCharts.Runtime
|
||||
public string itemFormatter { get { return m_ItemFormatter; } set { m_ItemFormatter = value; } }
|
||||
/// <summary>
|
||||
/// the marker of serie.
|
||||
/// |serie的符号标志。
|
||||
/// ||serie的符号标志。
|
||||
/// </summary>
|
||||
public string marker { get { return m_Marker; } set { m_Marker = value; } }
|
||||
/// <summary>
|
||||
/// Fixed width. Higher priority than minWidth.
|
||||
/// |固定宽度。比 minWidth 优先。
|
||||
/// ||固定宽度。比 minWidth 优先。
|
||||
/// </summary>
|
||||
public float fixedWidth { get { return m_FixedWidth; } set { m_FixedWidth = value; } }
|
||||
/// <summary>
|
||||
/// Fixed height. Higher priority than minHeight.
|
||||
/// |固定高度。比 minHeight 优先。
|
||||
/// ||固定高度。比 minHeight 优先。
|
||||
/// </summary>
|
||||
public float fixedHeight { get { return m_FixedHeight; } set { m_FixedHeight = value; } }
|
||||
/// <summary>
|
||||
/// Minimum width. If fixedWidth has a value, get fixedWidth first.
|
||||
/// |最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。
|
||||
/// ||最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。
|
||||
/// </summary>
|
||||
public float minWidth { get { return m_MinWidth; } set { m_MinWidth = value; } }
|
||||
/// <summary>
|
||||
/// Minimum height. If fixedHeight has a value, take priority over fixedHeight.
|
||||
/// |最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。
|
||||
/// ||最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。
|
||||
/// </summary>
|
||||
public float minHeight { get { return m_MinHeight; } set { m_MinHeight = value; } }
|
||||
/// <summary>
|
||||
@@ -271,7 +271,7 @@ namespace XCharts.Runtime
|
||||
/// Using 'Axx' form: 'A' is the single character of the format specifier, supporting 'C' currency,
|
||||
/// 'D' decimal, 'E' exponent, 'F' number of vertices, 'G' regular, 'N' digits, 'P' percentage,
|
||||
/// 'R' round tripping, 'X' hex etc. 'XX' is the precision specification, from '0' - '99'.
|
||||
/// |标准数字格式字符串。用于将数值格式化显示为字符串。
|
||||
/// ||标准数字格式字符串。用于将数值格式化显示为字符串。
|
||||
/// 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。
|
||||
/// 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
|
||||
/// </summary>
|
||||
@@ -283,58 +283,58 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the text padding of left and right. defaut:5.
|
||||
/// |左右边距。
|
||||
/// ||左右边距。
|
||||
/// </summary>
|
||||
public int paddingLeftRight { get { return m_PaddingLeftRight; } set { m_PaddingLeftRight = value; } }
|
||||
/// <summary>
|
||||
/// the text padding of top and bottom. defaut:5.
|
||||
/// |上下边距。
|
||||
/// ||上下边距。
|
||||
/// </summary>
|
||||
public int paddingTopBottom { get { return m_PaddingTopBottom; } set { m_PaddingTopBottom = value; } }
|
||||
/// <summary>
|
||||
/// Whether to show ignored data on tooltip.
|
||||
/// |是否显示忽略数据在tooltip上。
|
||||
/// ||是否显示忽略数据在tooltip上。
|
||||
/// </summary>
|
||||
public bool ignoreDataShow { get { return m_IgnoreDataShow; } set { m_IgnoreDataShow = value; } }
|
||||
/// <summary>
|
||||
/// The default display character information for ignored data.
|
||||
/// |被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。
|
||||
/// ||被忽略数据的默认显示字符信息。如果设置为空,则表示完全不显示忽略数据。
|
||||
/// </summary>
|
||||
public string ignoreDataDefaultContent { get { return m_IgnoreDataDefaultContent; } set { m_IgnoreDataDefaultContent = value; } }
|
||||
/// <summary>
|
||||
/// The background image of tooltip.
|
||||
/// |提示框的背景图片。
|
||||
/// ||提示框的背景图片。
|
||||
/// </summary>
|
||||
public Sprite backgroundImage { get { return m_BackgroundImage; } set { m_BackgroundImage = value; SetComponentDirty(); } }
|
||||
/// <summary>
|
||||
/// The background type of tooltip.
|
||||
/// |提示框的背景图片显示类型。
|
||||
/// ||提示框的背景图片显示类型。
|
||||
/// </summary>
|
||||
public Image.Type backgroundType { get { return m_BackgroundType; } set { m_BackgroundType = value; SetComponentDirty(); } }
|
||||
/// <summary>
|
||||
/// The background color of tooltip.
|
||||
/// |提示框的背景颜色。
|
||||
/// ||提示框的背景颜色。
|
||||
/// </summary>
|
||||
public Color backgroundColor { get { return m_BackgroundColor; } set { m_BackgroundColor = value; SetComponentDirty(); } }
|
||||
/// <summary>
|
||||
/// Whether to trigger after always display.
|
||||
/// |是否触发后一直显示提示框浮层。
|
||||
/// ||是否触发后一直显示提示框浮层。
|
||||
/// </summary>
|
||||
public bool alwayShowContent { get { return m_AlwayShowContent; } set { m_AlwayShowContent = value; } }
|
||||
/// <summary>
|
||||
/// Whether to show the tooltip floating layer, whose default value is true.
|
||||
/// It should be configurated to be false, if you only need tooltip to trigger the event or show the axisPointer without content.
|
||||
/// |是否显示提示框浮层,默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。
|
||||
/// ||是否显示提示框浮层,默认显示。只需tooltip触发事件或显示axisPointer而不需要显示内容时可配置该项为false。
|
||||
/// </summary>
|
||||
public bool showContent { get { return m_ShowContent; } set { m_ShowContent = value; } }
|
||||
/// <summary>
|
||||
/// The position offset of tooltip relative to the mouse position.
|
||||
/// |提示框相对于鼠标位置的偏移。
|
||||
/// ||提示框相对于鼠标位置的偏移。
|
||||
/// </summary>
|
||||
public Vector2 offset { get { return m_Offset; } set { m_Offset = value; } }
|
||||
/// <summary>
|
||||
/// the width of tooltip border.
|
||||
/// |边框线宽。
|
||||
/// ||边框线宽。
|
||||
/// </summary>
|
||||
public float borderWidth
|
||||
{
|
||||
@@ -343,7 +343,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of tooltip border.
|
||||
/// |边框颜色。
|
||||
/// ||边框颜色。
|
||||
/// </summary>
|
||||
public Color32 borderColor
|
||||
{
|
||||
@@ -352,7 +352,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the x positionn of fixedX.
|
||||
/// |固定X位置的坐标。
|
||||
/// ||固定X位置的坐标。
|
||||
/// </summary>
|
||||
public float fixedX
|
||||
{
|
||||
@@ -361,7 +361,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the y position of fixedY.
|
||||
/// |固定Y位置的坐标。
|
||||
/// ||固定Y位置的坐标。
|
||||
/// </summary>
|
||||
public float fixedY
|
||||
{
|
||||
@@ -370,7 +370,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// height of title text.
|
||||
/// |标题文本的高。
|
||||
/// ||标题文本的高。
|
||||
/// </summary>
|
||||
public float titleHeight
|
||||
{
|
||||
@@ -379,7 +379,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// height of content text.
|
||||
/// |数据项文本的高。
|
||||
/// ||数据项文本的高。
|
||||
/// </summary>
|
||||
public float itemHeight
|
||||
{
|
||||
@@ -388,7 +388,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the textstyle of title.
|
||||
/// |标题的文本样式。
|
||||
/// ||标题的文本样式。
|
||||
/// </summary>
|
||||
public LabelStyle titleLabelStyle
|
||||
{
|
||||
@@ -397,7 +397,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the textstyle list of content.
|
||||
/// |内容部分的文本样式列表。和列一一对应。
|
||||
/// ||内容部分的文本样式列表。和列一一对应。
|
||||
/// </summary>
|
||||
public List<LabelStyle> contentLabelStyles
|
||||
{
|
||||
@@ -407,7 +407,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the line style of indicator line.
|
||||
/// |指示线样式。
|
||||
/// ||指示线样式。
|
||||
/// </summary>
|
||||
public LineStyle lineStyle
|
||||
{
|
||||
@@ -434,14 +434,14 @@ namespace XCharts.Runtime
|
||||
public Dictionary<int, List<int>> runtimeSerieIndex = new Dictionary<int, List<int>>();
|
||||
/// <summary>
|
||||
/// The data index currently indicated by Tooltip.
|
||||
/// |当前提示框所指示的数据项索引。
|
||||
/// ||当前提示框所指示的数据项索引。
|
||||
/// </summary>
|
||||
public List<int> runtimeDataIndex { get { return m_RuntimeDateIndex; } internal set { m_RuntimeDateIndex = value; } }
|
||||
private List<int> m_RuntimeDateIndex = new List<int>() { -1, -1 };
|
||||
|
||||
/// <summary>
|
||||
/// Keep Tooltiop displayed at the top.
|
||||
/// |保持Tooltiop显示在最顶上
|
||||
/// ||保持Tooltiop显示在最顶上
|
||||
/// </summary>
|
||||
public void KeepTop()
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// VisualMap component. Mapping data to visual elements such as colors.
|
||||
/// |视觉映射组件。用于进行『视觉编码』,也就是将数据映射到视觉元素(视觉通道)。
|
||||
/// ||视觉映射组件。用于进行『视觉编码』,也就是将数据映射到视觉元素(视觉通道)。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[ComponentHandler(typeof(VisualMapHandler), true)]
|
||||
@@ -108,7 +108,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to enable components.
|
||||
/// |组件是否生效。
|
||||
/// ||组件是否生效。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -117,7 +117,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to display components. If set to false, it will not show up, but the data mapping function still exists.
|
||||
/// |是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。
|
||||
/// ||是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。
|
||||
/// </summary>
|
||||
public bool showUI
|
||||
{
|
||||
@@ -126,7 +126,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the type of visualmap component.
|
||||
/// |组件类型。
|
||||
/// ||组件类型。
|
||||
/// </summary>
|
||||
public Type type
|
||||
{
|
||||
@@ -135,7 +135,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the selected mode for Piecewise visualMap.
|
||||
/// |选择模式。
|
||||
/// ||选择模式。
|
||||
/// </summary>
|
||||
public SelectedMode selectedMode
|
||||
{
|
||||
@@ -144,7 +144,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the serie index of visualMap.
|
||||
/// |影响的serie索引。
|
||||
/// ||影响的serie索引。
|
||||
/// </summary>
|
||||
public int serieIndex
|
||||
{
|
||||
@@ -153,7 +153,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The minimum allowed. 'min' must be user specified. [visualmap.min, visualmap.max] forms the "domain" of the visualMap.
|
||||
/// |
|
||||
/// ||
|
||||
/// 允许的最小值。`autoMinMax`为`false`时必须指定。[visualMap.min, visualMap.max] 形成了视觉映射的『定义域』。
|
||||
/// </summary>
|
||||
public double min
|
||||
@@ -163,7 +163,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The maximum allowed. 'max' must be user specified. [visualmap.min, visualmap.max] forms the "domain" of the visualMap.
|
||||
/// |
|
||||
/// ||
|
||||
/// 允许的最大值。`autoMinMax`为`false`时必须指定。[visualMap.min, visualMax.max] 形成了视觉映射的『定义域』。
|
||||
/// </summary>
|
||||
public double max
|
||||
@@ -173,24 +173,24 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max].
|
||||
/// |
|
||||
/// ||
|
||||
/// 指定手柄对应数值的位置。range 应在[min,max]范围内。
|
||||
/// </summary>
|
||||
public double[] range { get { return m_Range; } }
|
||||
/// <summary>
|
||||
/// Text on both ends.
|
||||
/// |两端的文本,如 ['High', 'Low']。
|
||||
/// ||两端的文本,如 ['High', 'Low']。
|
||||
/// </summary>
|
||||
public string[] text { get { return m_Text; } }
|
||||
/// <summary>
|
||||
/// The distance between the two text bodies.
|
||||
/// |两端文字主体之间的距离,单位为px。
|
||||
/// ||两端文字主体之间的距离,单位为px。
|
||||
/// </summary>
|
||||
public float[] textGap { get { return m_TextGap; } }
|
||||
/// <summary>
|
||||
/// For continuous data, it is automatically evenly divided into several segments
|
||||
/// and automatically matches the size of inRange color list when the default is 0.
|
||||
/// |
|
||||
/// ||
|
||||
/// 对于连续型数据,自动平均切分成几段,默认为0时自动匹配inRange颜色列表大小。
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
@@ -201,7 +201,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the handle used for dragging is displayed (the handle can be dragged to adjust the selected range).
|
||||
/// |
|
||||
/// ||
|
||||
/// 是否显示拖拽用的手柄(手柄能拖拽调整选中范围)。
|
||||
/// </summary>
|
||||
public bool calculable
|
||||
@@ -211,7 +211,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to update in real time while dragging.
|
||||
/// |
|
||||
/// ||
|
||||
/// 拖拽时,是否实时更新。
|
||||
/// </summary>
|
||||
public bool realtime
|
||||
@@ -221,7 +221,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The width of the figure, that is, the width of the color bar.
|
||||
/// |
|
||||
/// ||
|
||||
/// 图形的宽度,即颜色条的宽度。
|
||||
/// </summary>
|
||||
public float itemWidth
|
||||
@@ -231,7 +231,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The height of the figure, that is, the height of the color bar.
|
||||
/// |
|
||||
/// ||
|
||||
/// 图形的高度,即颜色条的高度。
|
||||
/// </summary>
|
||||
public float itemHeight
|
||||
@@ -249,7 +249,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Border line width.
|
||||
/// |
|
||||
/// ||
|
||||
/// 边框线宽,单位px。
|
||||
/// </summary>
|
||||
public float borderWidth
|
||||
@@ -259,8 +259,8 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Specifies "which dimension" of the data to map to the visual element. "Data" is series.data.
|
||||
/// |Starting at 1, the default is 0 to take the last dimension in data.
|
||||
/// |
|
||||
/// ||Starting at 1, the default is 0 to take the last dimension in data.
|
||||
/// ||
|
||||
/// 指定用数据的『哪个维度』,映射到视觉元素上。『数据』即 series.data。从1开始,默认为0取 data 中最后一个维度。
|
||||
/// </summary>
|
||||
public int dimension
|
||||
@@ -271,9 +271,9 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// When the hoverLink function is turned on, when the mouse hovers over the visualMap component,
|
||||
/// the corresponding value of the mouse position is highlighted in the corresponding graphic element in the diagram.
|
||||
/// |Conversely, when the mouse hovers over a graphic element in a diagram,
|
||||
/// ||Conversely, when the mouse hovers over a graphic element in a diagram,
|
||||
/// the corresponding value of the visualMap component is triangulated in the corresponding position.
|
||||
/// |
|
||||
/// ||
|
||||
/// 打开 hoverLink 功能时,鼠标悬浮到 visualMap 组件上时,鼠标位置对应的数值 在 图表中对应的图形元素,会高亮。
|
||||
/// 反之,鼠标悬浮到图表中的图形元素上时,在 visualMap 组件的相应位置会有三角提示其所对应的数值。
|
||||
/// </summary>
|
||||
@@ -294,7 +294,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Specify whether the layout of component is horizontal or vertical.
|
||||
/// |
|
||||
/// ||
|
||||
/// 布局方式是横还是竖。
|
||||
/// </summary>
|
||||
public Orient orient
|
||||
@@ -304,7 +304,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The location of component.
|
||||
/// |组件显示的位置。
|
||||
/// ||组件显示的位置。
|
||||
/// </summary>
|
||||
public Location location
|
||||
{
|
||||
@@ -313,7 +313,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the visualmap is work on linestyle of linechart.
|
||||
/// |组件是否对LineChart的LineStyle有效。
|
||||
/// ||组件是否对LineChart的LineStyle有效。
|
||||
/// </summary>
|
||||
public bool workOnLine
|
||||
{
|
||||
@@ -322,7 +322,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the visualmap is work on areaStyle of linechart.
|
||||
/// |组件是否对LineChart的AreaStyle有效。
|
||||
/// ||组件是否对LineChart的AreaStyle有效。
|
||||
/// </summary>
|
||||
public bool workOnArea
|
||||
{
|
||||
@@ -331,7 +331,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Defines a visual color outside of the selected range.
|
||||
/// |定义 在选中范围外 的视觉颜色。
|
||||
/// ||定义 在选中范围外 的视觉颜色。
|
||||
/// </summary>
|
||||
public List<VisualMapRange> outOfRange
|
||||
{
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Grid component.
|
||||
/// |Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
|
||||
/// |网格组件。
|
||||
/// ||Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
|
||||
/// ||网格组件。
|
||||
/// 直角坐标系内绘图网格。可以在网格上绘制折线图,柱状图,散点图。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
@@ -30,7 +30,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show the grid in rectangular coordinate.
|
||||
/// |是否显示直角坐标系网格。
|
||||
/// ||是否显示直角坐标系网格。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -41,7 +41,7 @@ namespace XCharts.Runtime
|
||||
/// The index of the grid layout component to which the grid belongs.
|
||||
/// The default is -1, which means that it does not belong to any grid layout component.
|
||||
/// When this value is set, the left, right, top, and bottom properties will be invalid.
|
||||
/// |网格所属的网格布局组件的索引。默认为-1,表示不属于任何网格布局组件。当设置了该值时,left、right、top、bottom属性将失效。
|
||||
/// ||网格所属的网格布局组件的索引。默认为-1,表示不属于任何网格布局组件。当设置了该值时,left、right、top、bottom属性将失效。
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public int layoutIndex
|
||||
@@ -51,7 +51,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the left side of the container.
|
||||
/// |grid 组件离容器左侧的距离。
|
||||
/// ||grid 组件离容器左侧的距离。
|
||||
/// </summary>
|
||||
public float left
|
||||
{
|
||||
@@ -60,7 +60,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the right side of the container.
|
||||
/// |grid 组件离容器右侧的距离。
|
||||
/// ||grid 组件离容器右侧的距离。
|
||||
/// </summary>
|
||||
public float right
|
||||
{
|
||||
@@ -69,7 +69,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the top side of the container.
|
||||
/// |grid 组件离容器上侧的距离。
|
||||
/// ||grid 组件离容器上侧的距离。
|
||||
/// </summary>
|
||||
public float top
|
||||
{
|
||||
@@ -78,7 +78,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the bottom side of the container.
|
||||
/// |grid 组件离容器下侧的距离。
|
||||
/// ||grid 组件离容器下侧的距离。
|
||||
/// </summary>
|
||||
public float bottom
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Background color of grid, which is transparent by default.
|
||||
/// |网格背景色,默认透明。
|
||||
/// ||网格背景色,默认透明。
|
||||
/// </summary>
|
||||
public Color32 backgroundColor
|
||||
{
|
||||
@@ -96,7 +96,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to show the grid border.
|
||||
/// |是否显示网格边框。
|
||||
/// ||是否显示网格边框。
|
||||
/// </summary>
|
||||
public bool showBorder
|
||||
{
|
||||
@@ -105,7 +105,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Border width of grid.
|
||||
/// |网格边框宽。
|
||||
/// ||网格边框宽。
|
||||
/// </summary>
|
||||
public float borderWidth
|
||||
{
|
||||
@@ -114,7 +114,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The color of grid border.
|
||||
/// |网格边框颜色。
|
||||
/// ||网格边框颜色。
|
||||
/// </summary>
|
||||
public Color32 borderColor
|
||||
{
|
||||
@@ -151,7 +151,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether the pointer is in the grid.
|
||||
/// |指针是否在网格内。
|
||||
/// ||指针是否在网格内。
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool IsPointerEnter()
|
||||
@@ -161,7 +161,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether the given position is in the grid.
|
||||
/// |给定的位置是否在网格内。
|
||||
/// ||给定的位置是否在网格内。
|
||||
/// </summary>
|
||||
/// <param name="pos"></param>
|
||||
/// <returns></returns>
|
||||
@@ -172,7 +172,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether the given position is in the grid.
|
||||
/// |给定的位置是否在网格内。
|
||||
/// ||给定的位置是否在网格内。
|
||||
/// </summary>
|
||||
/// <param name="pos"></param>
|
||||
/// <param name="isYAxis"></param>
|
||||
@@ -185,7 +185,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether the given position is in the grid.
|
||||
/// |给定的位置是否在网格内。
|
||||
/// ||给定的位置是否在网格内。
|
||||
/// </summary>
|
||||
/// <param name="x"></param>
|
||||
/// <param name="y"></param>
|
||||
@@ -197,7 +197,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether the given x is in the grid.
|
||||
/// |给定的x是否在网格内。
|
||||
/// ||给定的x是否在网格内。
|
||||
/// </summary>
|
||||
/// <param name="x"></param>
|
||||
/// <returns></returns>
|
||||
@@ -209,7 +209,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether the given y is in the grid.
|
||||
/// |给定的y是否在网格内。
|
||||
/// ||给定的y是否在网格内。
|
||||
/// </summary>
|
||||
/// <param name="y"></param>
|
||||
/// <returns></returns>
|
||||
@@ -221,7 +221,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Clamp the position of pos to the grid.
|
||||
/// |将位置限制在网格内。
|
||||
/// ||将位置限制在网格内。
|
||||
/// </summary>
|
||||
/// <param name="pos"></param>
|
||||
[Since("v3.7.0")]
|
||||
@@ -233,7 +233,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Clamp the x position of pos to the grid.
|
||||
/// |将位置的X限制在网格内。
|
||||
/// ||将位置的X限制在网格内。
|
||||
/// </summary>
|
||||
/// <param name="pos"></param>
|
||||
[Since("v3.7.0")]
|
||||
@@ -245,7 +245,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Clamp the y position of pos to the grid.
|
||||
/// |将位置的Y限制在网格内。
|
||||
/// ||将位置的Y限制在网格内。
|
||||
/// </summary>
|
||||
/// <param name="pos"></param>
|
||||
[Since("v3.7.0")]
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Grid layout component. Used to manage the layout of multiple `GridCoord`, and the number of rows and columns of the grid can be controlled by `row` and `column`.
|
||||
/// |网格布局组件。用于管理多个`GridCoord`的布局,可以通过`row`和`column`来控制网格的行列数。
|
||||
/// ||网格布局组件。用于管理多个`GridCoord`的布局,可以通过`row`和`column`来控制网格的行列数。
|
||||
/// </summary>
|
||||
[Since("v3.8.0")]
|
||||
[Serializable]
|
||||
@@ -26,7 +26,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show the grid in rectangular coordinate.
|
||||
/// |是否显示直角坐标系网格。
|
||||
/// ||是否显示直角坐标系网格。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the left side of the container.
|
||||
/// |grid 组件离容器左侧的距离。
|
||||
/// ||grid 组件离容器左侧的距离。
|
||||
/// </summary>
|
||||
public float left
|
||||
{
|
||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the right side of the container.
|
||||
/// |grid 组件离容器右侧的距离。
|
||||
/// ||grid 组件离容器右侧的距离。
|
||||
/// </summary>
|
||||
public float right
|
||||
{
|
||||
@@ -53,7 +53,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the top side of the container.
|
||||
/// |grid 组件离容器上侧的距离。
|
||||
/// ||grid 组件离容器上侧的距离。
|
||||
/// </summary>
|
||||
public float top
|
||||
{
|
||||
@@ -62,7 +62,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the bottom side of the container.
|
||||
/// |grid 组件离容器下侧的距离。
|
||||
/// ||grid 组件离容器下侧的距离。
|
||||
/// </summary>
|
||||
public float bottom
|
||||
{
|
||||
@@ -71,7 +71,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the row count of grid layout.
|
||||
/// |网格布局的行数。
|
||||
/// ||网格布局的行数。
|
||||
/// </summary>
|
||||
public int row
|
||||
{
|
||||
@@ -80,7 +80,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the column count of grid layout.
|
||||
/// |网格布局的列数。
|
||||
/// ||网格布局的列数。
|
||||
/// </summary>
|
||||
public int column
|
||||
{
|
||||
@@ -89,7 +89,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the spacing of grid layout.
|
||||
/// |网格布局的间距。
|
||||
/// ||网格布局的间距。
|
||||
/// </summary>
|
||||
public Vector2 spacing
|
||||
{
|
||||
@@ -98,7 +98,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to inverse the grid layout.
|
||||
/// |是否反转网格布局。
|
||||
/// ||是否反转网格布局。
|
||||
/// </summary>
|
||||
public bool inverse
|
||||
{
|
||||
|
||||
@@ -5,8 +5,8 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Grid component.
|
||||
/// |Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
|
||||
/// |网格组件。
|
||||
/// ||Drawing grid in rectangular coordinate. Line chart, bar chart, and scatter chart can be drawn in grid.
|
||||
/// ||网格组件。
|
||||
/// 直角坐标系内绘图网格。可以在网格上绘制折线图,柱状图,散点图。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
@@ -25,7 +25,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show the grid in rectangular coordinate.
|
||||
/// |是否显示直角坐标系网格。
|
||||
/// ||是否显示直角坐标系网格。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -34,7 +34,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Orientation of the axis. By default, it's 'Vertical'. You can set it to be 'Horizonal' to make a vertical axis.
|
||||
/// |坐标轴朝向。默认为垂直朝向。
|
||||
/// ||坐标轴朝向。默认为垂直朝向。
|
||||
/// </summary>
|
||||
public Orient orient
|
||||
{
|
||||
@@ -43,7 +43,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the left side of the container.
|
||||
/// |grid 组件离容器左侧的距离。
|
||||
/// ||grid 组件离容器左侧的距离。
|
||||
/// </summary>
|
||||
public float left
|
||||
{
|
||||
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the right side of the container.
|
||||
/// |grid 组件离容器右侧的距离。
|
||||
/// ||grid 组件离容器右侧的距离。
|
||||
/// </summary>
|
||||
public float right
|
||||
{
|
||||
@@ -61,7 +61,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the top side of the container.
|
||||
/// |grid 组件离容器上侧的距离。
|
||||
/// ||grid 组件离容器上侧的距离。
|
||||
/// </summary>
|
||||
public float top
|
||||
{
|
||||
@@ -70,7 +70,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between grid component and the bottom side of the container.
|
||||
/// |grid 组件离容器下侧的距离。
|
||||
/// ||grid 组件离容器下侧的距离。
|
||||
/// </summary>
|
||||
public float bottom
|
||||
{
|
||||
@@ -79,7 +79,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Background color of grid, which is transparent by default.
|
||||
/// |网格背景色,默认透明。
|
||||
/// ||网格背景色,默认透明。
|
||||
/// </summary>
|
||||
public Color backgroundColor
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Polar coordinate can be used in scatter and line chart. Every polar coordinate has an angleAxis and a radiusAxis.
|
||||
/// |极坐标系组件。
|
||||
/// ||极坐标系组件。
|
||||
/// 极坐标系,可以用于散点图和折线图。每个极坐标系拥有一个角度轴和一个半径轴。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
@@ -22,7 +22,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show the polor component.
|
||||
/// |是否显示极坐标。
|
||||
/// ||是否显示极坐标。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -32,7 +32,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// The center of ploar. The center[0] is the x-coordinate, and the center[1] is the y-coordinate.
|
||||
/// When value between 0 and 1 represents a percentage relative to the chart.
|
||||
/// |极坐标的中心点。数组的第一项是横坐标,第二项是纵坐标。
|
||||
/// ||极坐标的中心点。数组的第一项是横坐标,第二项是纵坐标。
|
||||
/// 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。
|
||||
/// </summary>
|
||||
public float[] center
|
||||
@@ -42,7 +42,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the radius of polar.
|
||||
/// |半径。radius[0]表示内径,radius[1]表示外径。
|
||||
/// ||半径。radius[0]表示内径,radius[1]表示外径。
|
||||
/// </summary>
|
||||
public float[] radius
|
||||
{
|
||||
@@ -51,7 +51,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Background color of polar, which is transparent by default.
|
||||
/// |极坐标的背景色,默认透明。
|
||||
/// ||极坐标的背景色,默认透明。
|
||||
/// </summary>
|
||||
public Color backgroundColor
|
||||
{
|
||||
@@ -61,7 +61,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The offset of indicator label.
|
||||
/// |指示器标签的偏移量。
|
||||
/// ||指示器标签的偏移量。
|
||||
/// </summary>
|
||||
public float indicatorLabelOffset
|
||||
{
|
||||
|
||||
@@ -7,18 +7,18 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// the center position of polar in container.
|
||||
/// |极坐标在容器中的具体中心点。
|
||||
/// ||极坐标在容器中的具体中心点。
|
||||
/// </summary>
|
||||
public Vector3 center;
|
||||
public float radius;
|
||||
/// <summary>
|
||||
/// the true radius of polar.
|
||||
/// |极坐标的运行时实际内半径。
|
||||
/// ||极坐标的运行时实际内半径。
|
||||
/// </summary>
|
||||
public float insideRadius;
|
||||
/// <summary>
|
||||
/// the true radius of polar.
|
||||
/// |极坐标的运行时实际外半径。
|
||||
/// ||极坐标的运行时实际外半径。
|
||||
/// </summary>
|
||||
public float outsideRadius;
|
||||
public bool isPointerEnter;
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Language.
|
||||
/// |国际化语言表。
|
||||
/// ||国际化语言表。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[CreateAssetMenu(menuName = "XCharts/Export Lang")]
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The attribute for serie component.
|
||||
/// |可添加到Serie的组件。
|
||||
/// ||可添加到Serie的组件。
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
||||
public sealed class SerieComponentAttribute : Attribute
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The attribute for which serie types can be converted to.
|
||||
/// |可转化为哪些Serie类型。
|
||||
/// ||可转化为哪些Serie类型。
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
||||
public sealed class SerieConvertAttribute : Attribute
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The attribute for serie data component.
|
||||
/// |可添加到SerieData的组件。
|
||||
/// ||可添加到SerieData的组件。
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
||||
public sealed class SerieDataComponentAttribute : Attribute
|
||||
|
||||
@@ -8,13 +8,13 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The base class of all charts.
|
||||
/// |所有Chart的基类。
|
||||
/// ||所有Chart的基类。
|
||||
/// </summary>
|
||||
public partial class BaseChart
|
||||
{
|
||||
/// <summary>
|
||||
/// The name of chart.
|
||||
/// |</summary>
|
||||
/// ||</summary>
|
||||
public string chartName
|
||||
{
|
||||
get { return m_ChartName; }
|
||||
@@ -32,31 +32,31 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The theme.
|
||||
/// |</summary>
|
||||
/// ||</summary>
|
||||
public ThemeStyle theme { get { return m_Theme; } set { m_Theme = value; } }
|
||||
/// <summary>
|
||||
/// Global parameter setting component.
|
||||
/// |全局设置组件。
|
||||
/// ||全局设置组件。
|
||||
/// </summary>
|
||||
public Settings settings { get { return m_Settings; } }
|
||||
/// <summary>
|
||||
/// The x of chart.
|
||||
/// |图表的X
|
||||
/// ||图表的X
|
||||
/// </summary>
|
||||
public float chartX { get { return m_ChartX; } }
|
||||
/// <summary>
|
||||
/// The y of chart.
|
||||
/// |图表的Y
|
||||
/// ||图表的Y
|
||||
/// </summary>
|
||||
public float chartY { get { return m_ChartY; } }
|
||||
/// <summary>
|
||||
/// The width of chart.
|
||||
/// |图表的宽
|
||||
/// ||图表的宽
|
||||
/// </summary>
|
||||
public float chartWidth { get { return m_ChartWidth; } }
|
||||
/// <summary>
|
||||
/// The height of chart.
|
||||
/// |图表的高
|
||||
/// ||图表的高
|
||||
/// </summary>
|
||||
public float chartHeight { get { return m_ChartHeight; } }
|
||||
public Vector2 chartMinAnchor { get { return m_ChartMinAnchor; } }
|
||||
@@ -65,18 +65,18 @@ namespace XCharts.Runtime
|
||||
public Vector2 chartSizeDelta { get { return m_ChartSizeDelta; } }
|
||||
/// <summary>
|
||||
/// The position of chart.
|
||||
/// |图表的左下角起始坐标。
|
||||
/// ||图表的左下角起始坐标。
|
||||
/// </summary>
|
||||
public Vector3 chartPosition { get { return m_ChartPosition; } }
|
||||
public Rect chartRect { get { return m_ChartRect; } }
|
||||
/// <summary>
|
||||
/// The callback function of chart init.
|
||||
/// |图表的初始化完成回调。
|
||||
/// ||图表的初始化完成回调。
|
||||
/// </summary>
|
||||
public Action onInit { set { m_OnInit = value; } }
|
||||
/// <summary>
|
||||
/// The callback function of chart update.
|
||||
/// |图表的Update回调。
|
||||
/// ||图表的Update回调。
|
||||
/// </summary>
|
||||
public Action onUpdate { set { m_OnUpdate = value; } }
|
||||
/// <summary>
|
||||
@@ -105,44 +105,44 @@ namespace XCharts.Runtime
|
||||
public CustomDrawGaugePointerFunction customDrawGaugePointerFunction { set { m_CustomDrawGaugePointerFunction = value; } get { return m_CustomDrawGaugePointerFunction; } }
|
||||
/// <summary>
|
||||
/// the callback function of pointer click serie.
|
||||
/// |鼠标点击Serie回调。
|
||||
/// ||鼠标点击Serie回调。
|
||||
/// </summary>
|
||||
[Since("v3.6.0")]
|
||||
public Action<SerieEventData> onSerieClick { set { m_OnSerieClick = value; m_ForceOpenRaycastTarget = true; } get { return m_OnSerieClick; } }
|
||||
/// <summary>
|
||||
/// the callback function of pointer down serie.
|
||||
/// |鼠标按下Serie回调。
|
||||
/// ||鼠标按下Serie回调。
|
||||
/// </summary>
|
||||
[Since("v3.6.0")]
|
||||
public Action<SerieEventData> onSerieDown { set { m_OnSerieDown = value; m_ForceOpenRaycastTarget = true; } get { return m_OnSerieDown; } }
|
||||
/// <summary>
|
||||
/// the callback function of pointer enter serie.
|
||||
/// |鼠标进入Serie回调。
|
||||
/// ||鼠标进入Serie回调。
|
||||
/// </summary>
|
||||
[Since("v3.6.0")]
|
||||
public Action<SerieEventData> onSerieEnter { set { m_OnSerieEnter = value; m_ForceOpenRaycastTarget = true; } get { return m_OnSerieEnter; } }
|
||||
/// <summary>
|
||||
/// the callback function of pointer exit serie.
|
||||
/// |鼠标离开Serie回调。
|
||||
/// ||鼠标离开Serie回调。
|
||||
/// </summary>
|
||||
[Since("v3.6.0")]
|
||||
public Action<SerieEventData> onSerieExit { set { m_OnSerieExit = value; m_ForceOpenRaycastTarget = true; } get { return m_OnSerieExit; } }
|
||||
/// <summary>
|
||||
/// the callback function of pointer click pie area.
|
||||
/// |点击饼图区域回调。参数:PointerEventData,SerieIndex,SerieDataIndex
|
||||
/// ||点击饼图区域回调。参数:PointerEventData,SerieIndex,SerieDataIndex
|
||||
/// </summary>
|
||||
[Obsolete("Use \"onSerieClick\" instead", true)]
|
||||
public Action<PointerEventData, int, int> onPointerClickPie { get; set; }
|
||||
/// <summary>
|
||||
/// the callback function of pointer enter pie area.
|
||||
/// |鼠标进入和离开饼图区域回调,SerieDataIndex为-1时表示离开。参数:PointerEventData,SerieIndex,SerieDataIndex
|
||||
/// ||鼠标进入和离开饼图区域回调,SerieDataIndex为-1时表示离开。参数:PointerEventData,SerieIndex,SerieDataIndex
|
||||
/// </summary>
|
||||
[Since("v3.3.0")]
|
||||
[Obsolete("Use \"onSerieEnter\" instead", true)]
|
||||
public Action<int, int> onPointerEnterPie { set { m_OnPointerEnterPie = value; m_ForceOpenRaycastTarget = true; } get { return m_OnPointerEnterPie; } }
|
||||
/// <summary>
|
||||
/// the callback function of click bar.
|
||||
/// |点击柱形图柱条回调。参数:eventData, dataIndex
|
||||
/// ||点击柱形图柱条回调。参数:eventData, dataIndex
|
||||
/// </summary>
|
||||
[Obsolete("Use \"onSerieClick\" instead", true)]
|
||||
public Action<PointerEventData, int> onPointerClickBar { get; set; }
|
||||
@@ -152,17 +152,17 @@ namespace XCharts.Runtime
|
||||
public Action<Axis, double> onAxisPointerValueChanged { set { m_OnAxisPointerValueChanged = value; } get { return m_OnAxisPointerValueChanged; } }
|
||||
/// <summary>
|
||||
/// the callback function of click legend.
|
||||
/// |点击图例按钮回调。参数:legendIndex, legendName, show
|
||||
/// ||点击图例按钮回调。参数:legendIndex, legendName, show
|
||||
/// </summary>
|
||||
public Action<Legend, int, string, bool> onLegendClick { set { m_OnLegendClick = value; } internal get { return m_OnLegendClick; } }
|
||||
/// <summary>
|
||||
/// the callback function of enter legend.
|
||||
/// |鼠标进入图例回调。参数:legendIndex, legendName
|
||||
/// ||鼠标进入图例回调。参数:legendIndex, legendName
|
||||
/// </summary>
|
||||
public Action<Legend, int, string> onLegendEnter { set { m_OnLegendEnter = value; } internal get { return m_OnLegendEnter; } }
|
||||
/// <summary>
|
||||
/// the callback function of exit legend.
|
||||
/// |鼠标退出图例回调。参数:legendIndex, legendName
|
||||
/// ||鼠标退出图例回调。参数:legendIndex, legendName
|
||||
/// </summary>
|
||||
public Action<Legend, int, string> onLegendExit { set { m_OnLegendExit = value; } internal get { return m_OnLegendExit; } }
|
||||
public void Init(bool defaultChart = true)
|
||||
@@ -179,7 +179,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Redraw chart in next frame.
|
||||
/// |在下一帧刷新整个图表。
|
||||
/// ||在下一帧刷新整个图表。
|
||||
/// </summary>
|
||||
public void RefreshChart()
|
||||
{
|
||||
@@ -197,7 +197,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Redraw chart serie in next frame.
|
||||
/// |在下一帧刷新图表的指定serie。
|
||||
/// ||在下一帧刷新图表的指定serie。
|
||||
/// </summary>
|
||||
public void RefreshChart(int serieIndex)
|
||||
{
|
||||
@@ -206,7 +206,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Redraw chart serie in next frame.
|
||||
/// |在下一帧刷新图表的指定serie。
|
||||
/// ||在下一帧刷新图表的指定serie。
|
||||
/// </summary>
|
||||
public void RefreshChart(Serie serie)
|
||||
{
|
||||
@@ -217,7 +217,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Clear all components and series data. Note: serie only empties the data and does not remove serie.
|
||||
/// |清空所有组件和Serie的数据。注意:Serie只是清空数据,不会移除Serie。
|
||||
/// ||清空所有组件和Serie的数据。注意:Serie只是清空数据,不会移除Serie。
|
||||
/// </summary>
|
||||
public virtual void ClearData()
|
||||
{
|
||||
@@ -228,7 +228,7 @@ namespace XCharts.Runtime
|
||||
[Since("v3.4.0")]
|
||||
/// <summary>
|
||||
/// Clear the data of all series.
|
||||
/// |清空所有serie的数据。
|
||||
/// ||清空所有serie的数据。
|
||||
/// </summary>
|
||||
public virtual void ClearSerieData()
|
||||
{
|
||||
@@ -241,7 +241,7 @@ namespace XCharts.Runtime
|
||||
[Since("v3.4.0")]
|
||||
/// <summary>
|
||||
/// Clear the data of all components.
|
||||
/// |清空所有组件的数据。
|
||||
/// ||清空所有组件的数据。
|
||||
/// </summary>
|
||||
public virtual void ClearComponentData()
|
||||
{
|
||||
@@ -254,7 +254,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Empty all component data and remove all series. Use the chart again and again to tell the truth.
|
||||
/// Note: The component only clears the data part, and the parameters are retained and not reset.
|
||||
/// |清空所有组件数据,并移除所有Serie。一般在图表重新初始化时使用。
|
||||
/// ||清空所有组件数据,并移除所有Serie。一般在图表重新初始化时使用。
|
||||
/// 注意:组件只清空数据部分,参数会保留不会被重置。
|
||||
/// </summary>
|
||||
public virtual void RemoveData()
|
||||
@@ -269,7 +269,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Remove all of them Serie. This interface is used when Serie needs to be removed only, and RemoveData() is generally used in other cases.
|
||||
/// |移除所有的Serie。当确认只需要移除Serie时使用该接口,其他情况下一般用RemoveData()。
|
||||
/// ||移除所有的Serie。当确认只需要移除Serie时使用该接口,其他情况下一般用RemoveData()。
|
||||
/// </summary>
|
||||
[Since("v3.2.0")]
|
||||
public virtual void RemoveAllSerie()
|
||||
@@ -282,7 +282,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Remove legend and serie by name.
|
||||
/// |清除指定系列名称的数据。
|
||||
/// ||清除指定系列名称的数据。
|
||||
/// </summary>
|
||||
/// <param name="serieName">the name of serie</param>
|
||||
public virtual void RemoveData(string serieName)
|
||||
@@ -320,7 +320,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether serie is activated.
|
||||
/// |获得指定图例名字的系列是否显示。
|
||||
/// ||获得指定图例名字的系列是否显示。
|
||||
/// </summary>
|
||||
/// <param name="legendName"></param>
|
||||
/// <returns></returns>
|
||||
@@ -349,7 +349,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Update chart theme.
|
||||
/// |切换内置主题。
|
||||
/// ||切换内置主题。
|
||||
/// </summary>
|
||||
/// <param name="theme">theme</param>
|
||||
public bool UpdateTheme(ThemeType theme)
|
||||
@@ -367,7 +367,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Update chart theme info.
|
||||
/// |切换图表主题。
|
||||
/// ||切换图表主题。
|
||||
/// </summary>
|
||||
/// <param name="theme">theme</param>
|
||||
public void UpdateTheme(Theme theme)
|
||||
@@ -381,7 +381,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether enable serie animations.
|
||||
/// |是否启用Serie动画。
|
||||
/// ||是否启用Serie动画。
|
||||
/// </summary>
|
||||
/// <param name="flag"></param>
|
||||
public void AnimationEnable(bool flag)
|
||||
@@ -391,7 +391,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Start all serie fadein animations.
|
||||
/// |开始所有Serie的渐入动画。
|
||||
/// ||开始所有Serie的渐入动画。
|
||||
/// </summary>
|
||||
/// <param name="reset">reset animation</param>
|
||||
public void AnimationFadeIn(bool reset = true)
|
||||
@@ -402,7 +402,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Start all serie fadeout animations.
|
||||
/// |开始所有Serie的渐出动画。
|
||||
/// ||开始所有Serie的渐出动画。
|
||||
/// </summary>
|
||||
public void AnimationFadeOut()
|
||||
{
|
||||
@@ -411,7 +411,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Pause all animations.
|
||||
/// |暂停所有Serie的动画。
|
||||
/// ||暂停所有Serie的动画。
|
||||
/// </summary>
|
||||
public void AnimationPause()
|
||||
{
|
||||
@@ -420,7 +420,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Resume all animations.
|
||||
/// |继续所有Serie的动画。
|
||||
/// ||继续所有Serie的动画。
|
||||
/// </summary>
|
||||
public void AnimationResume()
|
||||
{
|
||||
@@ -429,7 +429,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Reset all animations.
|
||||
/// |重置所有Serie的动画。
|
||||
/// ||重置所有Serie的动画。
|
||||
/// </summary>
|
||||
public void AnimationReset()
|
||||
{
|
||||
@@ -668,7 +668,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// trigger tooltip by data index.
|
||||
/// |尝试触发指定数据项的Tooltip.
|
||||
/// ||尝试触发指定数据项的Tooltip.
|
||||
/// </summary>
|
||||
/// <param name="dataIndex">数据项索引</param>
|
||||
/// <param name="serieIndex">Serie索引,默认为第0个Serie</param>
|
||||
@@ -698,7 +698,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// trigger tooltip by chart local position.
|
||||
/// |在指定的位置尝试触发Tooltip.
|
||||
/// ||在指定的位置尝试触发Tooltip.
|
||||
/// </summary>
|
||||
/// <param name="localPosition"></param>
|
||||
/// <returns></returns>
|
||||
@@ -714,7 +714,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// cancel tooltip.
|
||||
/// |取消Tooltip.
|
||||
/// ||取消Tooltip.
|
||||
/// </summary>
|
||||
[Since("v3.7.0")]
|
||||
public void CancelTooltip()
|
||||
|
||||
@@ -268,7 +268,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Ensure the chart has the component, if not, add it.
|
||||
/// Note: it may fail to add.
|
||||
/// |确保图表有该组件,如果没有则添加。注意:有可能添加不成功。
|
||||
/// ||确保图表有该组件,如果没有则添加。注意:有可能添加不成功。
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <returns>component, or null if add failed.</returns>
|
||||
@@ -395,7 +395,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// reutrn true when all the show axis is `Value` type.
|
||||
/// |纯数值坐标轴(数值轴或对数轴)。
|
||||
/// ||纯数值坐标轴(数值轴或对数轴)。
|
||||
/// </summary>
|
||||
public bool IsAllAxisValue()
|
||||
{
|
||||
|
||||
@@ -221,8 +221,8 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add a data to serie.
|
||||
/// |If serieName doesn't exist in legend,will be add to legend.
|
||||
/// |添加一个数据到指定的系列中。
|
||||
/// ||If serieName doesn't exist in legend,will be add to legend.
|
||||
/// ||添加一个数据到指定的系列中。
|
||||
/// </summary>
|
||||
/// <param name="serieName">the name of serie</param>
|
||||
/// <param name="data">the data to add</param>
|
||||
@@ -243,7 +243,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add a data to serie.
|
||||
/// |添加一个数据到指定的系列中。
|
||||
/// ||添加一个数据到指定的系列中。
|
||||
/// </summary>
|
||||
/// <param name="serieIndex">the index of serie</param>
|
||||
/// <param name="data">the data to add</param>
|
||||
@@ -264,7 +264,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add an arbitray dimension data to serie,such as (x,y,z,...).
|
||||
/// |添加多维数据(x,y,z...)到指定的系列中。
|
||||
/// ||添加多维数据(x,y,z...)到指定的系列中。
|
||||
/// </summary>
|
||||
/// <param name="serieName">the name of serie</param>
|
||||
/// <param name="multidimensionalData">the (x,y,z,...) data</param>
|
||||
@@ -285,7 +285,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add an arbitray dimension data to serie,such as (x,y,z,...).
|
||||
/// |添加多维数据(x,y,z...)到指定的系列中。
|
||||
/// ||添加多维数据(x,y,z...)到指定的系列中。
|
||||
/// </summary>
|
||||
/// <param name="serieIndex">the index of serie,index starts at 0</param>
|
||||
/// <param name="multidimensionalData">the (x,y,z,...) data</param>
|
||||
@@ -307,7 +307,7 @@ namespace XCharts.Runtime
|
||||
[Since("v3.4.0")]
|
||||
/// <summary>
|
||||
/// Add an arbitray dimension data to serie,such as (x,y,z,...).
|
||||
/// |添加多维数据(x,y,z...)到指定的系列中。
|
||||
/// ||添加多维数据(x,y,z...)到指定的系列中。
|
||||
/// </summary>
|
||||
/// <param name="serieIndex">the index of serie</param>
|
||||
/// <param name="multidimensionalData">the (x,y,z,...) data</param>
|
||||
@@ -327,7 +327,7 @@ namespace XCharts.Runtime
|
||||
[Since("v3.4.0")]
|
||||
/// <summary>
|
||||
/// Add an arbitray dimension data to serie,such as (x,y,z,...).
|
||||
/// |添加多维数据(x,y,z...)到指定的系列中。
|
||||
/// ||添加多维数据(x,y,z...)到指定的系列中。
|
||||
/// </summary>
|
||||
/// <param name="serieName">the name of serie</param>
|
||||
/// <param name="multidimensionalData">the (x,y,z,...) data</param>
|
||||
@@ -346,7 +346,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add a (x,y) data to serie.
|
||||
/// |添加(x,y)数据到指定系列中。
|
||||
/// ||添加(x,y)数据到指定系列中。
|
||||
/// </summary>
|
||||
/// <param name="serieName">the name of serie</param>
|
||||
/// <param name="xValue">x data</param>
|
||||
@@ -368,7 +368,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add a (x,y) data to serie.
|
||||
/// |添加(x,y)数据到指定系列中。
|
||||
/// ||添加(x,y)数据到指定系列中。
|
||||
/// </summary>
|
||||
/// <param name="serieIndex">the index of serie</param>
|
||||
/// <param name="xValue">x data</param>
|
||||
@@ -389,7 +389,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Add a (time,y) data to serie.
|
||||
/// |添加(time,y)数据到指定的系列中。
|
||||
/// ||添加(time,y)数据到指定的系列中。
|
||||
/// </summary>
|
||||
/// <param name="serieName"></param>
|
||||
/// <param name="time"></param>
|
||||
@@ -405,7 +405,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add a (time,y) data to serie.
|
||||
/// |添加(time,y)数据到指定的系列中。
|
||||
/// ||添加(time,y)数据到指定的系列中。
|
||||
/// </summary>
|
||||
/// <param name="serieIndex"></param>
|
||||
/// <param name="time"></param>
|
||||
@@ -444,7 +444,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Update serie data by serie name.
|
||||
/// |更新指定系列中的指定索引数据。
|
||||
/// ||更新指定系列中的指定索引数据。
|
||||
/// </summary>
|
||||
/// <param name="serieName">the name of serie</param>
|
||||
/// <param name="dataIndex">the index of data</param>
|
||||
@@ -463,7 +463,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Update serie data by serie index.
|
||||
/// |更新指定系列中的指定索引数据。
|
||||
/// ||更新指定系列中的指定索引数据。
|
||||
/// </summary>
|
||||
/// <param name="serieIndex">the index of serie</param>
|
||||
/// <param name="dataIndex">the index of data</param>
|
||||
@@ -556,7 +556,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Update serie data name.
|
||||
/// |更新指定系列中的指定索引数据名称。
|
||||
/// ||更新指定系列中的指定索引数据名称。
|
||||
/// </summary>
|
||||
/// <param name="serieName"></param>
|
||||
/// <param name="dataIndex"></param>
|
||||
@@ -574,7 +574,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Update serie data name.
|
||||
/// |更新指定系列中的指定索引数据名称。
|
||||
/// ||更新指定系列中的指定索引数据名称。
|
||||
/// </summary>
|
||||
/// <param name="serieIndex"></param>
|
||||
/// <param name="dataName"></param>
|
||||
@@ -620,7 +620,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show serie.
|
||||
/// |设置指定系列是否显示。
|
||||
/// ||设置指定系列是否显示。
|
||||
/// </summary>
|
||||
/// <param name="serieName">the name of serie</param>
|
||||
/// <param name="active">Active or not</param>
|
||||
@@ -633,7 +633,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show serie.
|
||||
/// |设置指定系列是否显示。
|
||||
/// ||设置指定系列是否显示。
|
||||
/// </summary>
|
||||
/// <param name="serieIndex">the index of serie</param>
|
||||
/// <param name="active">Active or not</param>
|
||||
@@ -655,7 +655,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add a category data to xAxis.
|
||||
/// |添加一个类目数据到指定的x轴。
|
||||
/// ||添加一个类目数据到指定的x轴。
|
||||
/// </summary>
|
||||
/// <param name="category">the category data</param>
|
||||
/// <param name="xAxisIndex">which xAxis should category add to</param>
|
||||
@@ -670,7 +670,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Update category data.
|
||||
/// |更新X轴类目数据。
|
||||
/// ||更新X轴类目数据。
|
||||
/// </summary>
|
||||
/// <param name="index">the index of category data</param>
|
||||
/// <param name="category"></param>
|
||||
@@ -686,7 +686,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add an icon to xAxis.
|
||||
/// |添加一个图标到指定的x轴。
|
||||
/// ||添加一个图标到指定的x轴。
|
||||
/// </summary>
|
||||
/// <param name="icon"></param>
|
||||
/// <param name="xAxisIndex"></param>
|
||||
@@ -701,7 +701,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Update xAxis icon.
|
||||
/// |更新X轴图标。
|
||||
/// ||更新X轴图标。
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
/// <param name="icon"></param>
|
||||
@@ -717,7 +717,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add a category data to yAxis.
|
||||
/// |添加一个类目数据到指定的y轴。
|
||||
/// ||添加一个类目数据到指定的y轴。
|
||||
/// </summary>
|
||||
/// <param name="category">the category data</param>
|
||||
/// <param name="yAxisIndex">which yAxis should category add to</param>
|
||||
@@ -732,7 +732,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Update category data.
|
||||
/// |更新Y轴类目数据。
|
||||
/// ||更新Y轴类目数据。
|
||||
/// </summary>
|
||||
/// <param name="index">the index of category data</param>
|
||||
/// <param name="category"></param>
|
||||
@@ -748,7 +748,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Add an icon to yAxis.
|
||||
/// |添加一个图标到指定的y轴。
|
||||
/// ||添加一个图标到指定的y轴。
|
||||
/// </summary>
|
||||
/// <param name="icon"></param>
|
||||
/// <param name="yAxisIndex"></param>
|
||||
|
||||
@@ -7,33 +7,33 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The base class of all graphs or components.
|
||||
/// |所有图形的基类。
|
||||
/// ||所有图形的基类。
|
||||
/// </summary>
|
||||
public partial class BaseGraph
|
||||
{
|
||||
/// <summary>
|
||||
/// The x of graph.
|
||||
/// |图形的X
|
||||
/// ||图形的X
|
||||
/// </summary>
|
||||
public float graphX { get { return m_GraphX; } }
|
||||
/// <summary>
|
||||
/// The y of graph.
|
||||
/// |图形的Y
|
||||
/// ||图形的Y
|
||||
/// </summary>
|
||||
public float graphY { get { return m_GraphY; } }
|
||||
/// <summary>
|
||||
/// The width of graph.
|
||||
/// |图形的宽
|
||||
/// ||图形的宽
|
||||
/// </summary>
|
||||
public float graphWidth { get { return m_GraphWidth; } }
|
||||
/// <summary>
|
||||
/// The height of graph.
|
||||
/// |图形的高
|
||||
/// ||图形的高
|
||||
/// </summary>
|
||||
public float graphHeight { get { return m_GraphHeight; } }
|
||||
/// <summary>
|
||||
/// The position of graph.
|
||||
/// |图形的左下角起始坐标。
|
||||
/// ||图形的左下角起始坐标。
|
||||
/// </summary>
|
||||
public Vector3 graphPosition { get { return m_GraphPosition; } }
|
||||
public Rect graphRect { get { return m_GraphRect; } }
|
||||
@@ -44,12 +44,12 @@ namespace XCharts.Runtime
|
||||
public Vector2 graphAnchoredPosition { get { return m_GraphAnchoredPosition; } }
|
||||
/// <summary>
|
||||
/// The postion of pointer.
|
||||
/// |鼠标位置。
|
||||
/// ||鼠标位置。
|
||||
/// </summary>
|
||||
public Vector2 pointerPos { get; protected set; }
|
||||
/// <summary>
|
||||
/// Whether the mouse pointer is in the chart.
|
||||
/// |鼠标是否在图表内。
|
||||
/// ||鼠标是否在图表内。
|
||||
/// </summary>
|
||||
public bool isPointerInChart
|
||||
{ get { return m_PointerEventData != null; } }
|
||||
@@ -125,7 +125,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Redraw graph in next frame.
|
||||
/// |在下一帧刷新图形。
|
||||
/// ||在下一帧刷新图形。
|
||||
/// </summary>
|
||||
public virtual void RefreshGraph()
|
||||
{
|
||||
@@ -175,7 +175,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// chart local point to screen point.
|
||||
/// |图表内坐标转屏幕坐标。
|
||||
/// ||图表内坐标转屏幕坐标。
|
||||
/// </summary>
|
||||
/// <param name="localPoint">图表内的坐标</param>
|
||||
/// <returns>屏幕坐标</returns>
|
||||
@@ -189,7 +189,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// chart local point to world point.
|
||||
/// |图表内坐标转世界坐标。
|
||||
/// ||图表内坐标转世界坐标。
|
||||
/// </summary>
|
||||
/// <param name="localPoint">图表内的坐标</param>
|
||||
/// <returns>世界坐标</returns>
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Coordinate system component.
|
||||
/// |
|
||||
/// ||
|
||||
/// 坐标系系统。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The delegate function for LabelStyle‘s formatter.
|
||||
/// |SerieLabel的formatter自定义委托。
|
||||
/// ||SerieLabel的formatter自定义委托。
|
||||
/// </summary>
|
||||
/// <param name="dataIndex">数据索引</param>
|
||||
/// <param name="value">数值</param>
|
||||
|
||||
@@ -2,7 +2,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// the layout is horizontal or vertical.
|
||||
/// |垂直还是水平布局方式。
|
||||
/// ||垂直还是水平布局方式。
|
||||
/// </summary>
|
||||
public enum Orient
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The interface for serie component.
|
||||
/// |可用于Serie的组件。
|
||||
/// ||可用于Serie的组件。
|
||||
/// </summary>
|
||||
public interface ISerieComponent
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The interface for serie data component.
|
||||
/// |可用于SerieData的组件。
|
||||
/// ||可用于SerieData的组件。
|
||||
/// </summary>
|
||||
public interface ISerieDataComponent
|
||||
{
|
||||
|
||||
@@ -4,33 +4,33 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// the data of serie event.
|
||||
/// |serie事件的数据。
|
||||
/// ||serie事件的数据。
|
||||
/// </summary>
|
||||
public class SerieEventData
|
||||
{
|
||||
/// <summary>
|
||||
/// the position of pointer in chart.
|
||||
/// |鼠标在chart中的位置。
|
||||
/// ||鼠标在chart中的位置。
|
||||
/// </summary>
|
||||
public Vector3 pointerPos { get; set; }
|
||||
/// <summary>
|
||||
/// the index of serie in chart.series.
|
||||
/// |在chart.series中的索引。
|
||||
/// ||在chart.series中的索引。
|
||||
/// </summary>
|
||||
public int serieIndex { get; set; }
|
||||
/// <summary>
|
||||
/// the index of data in serie.data.
|
||||
/// |在serie.data中的索引。
|
||||
/// ||在serie.data中的索引。
|
||||
/// </summary>
|
||||
public int dataIndex { get; set; }
|
||||
/// <summary>
|
||||
/// the dimension of data.
|
||||
/// |数据的维度。
|
||||
/// ||数据的维度。
|
||||
/// </summary>
|
||||
public int dimension { get; set; }
|
||||
/// <summary>
|
||||
/// the value of data.
|
||||
/// |数据的值。
|
||||
/// ||数据的值。
|
||||
/// </summary>
|
||||
public double value { get; set; }
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace XCharts.Runtime
|
||||
public ImageStyle background { get { return m_Background; } set { m_Background = value; color = Color.white; } }
|
||||
/// <summary>
|
||||
/// Update chart theme.
|
||||
/// |切换内置主题。
|
||||
/// ||切换内置主题。
|
||||
/// </summary>
|
||||
/// <param name="theme">theme</param>
|
||||
public bool UpdateTheme(ThemeType theme)
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace XCharts.Runtime
|
||||
public bool show { get { return m_Show; } }
|
||||
/// <summary>
|
||||
/// the theme of chart.
|
||||
/// |主题类型。
|
||||
/// ||主题类型。
|
||||
/// </summary>
|
||||
public ThemeType themeType
|
||||
{
|
||||
@@ -22,7 +22,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// theme name.
|
||||
/// |主题名字。
|
||||
/// ||主题名字。
|
||||
/// </summary>
|
||||
public string themeName
|
||||
{
|
||||
@@ -30,7 +30,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the asset of theme.
|
||||
/// |主题配置。
|
||||
/// ||主题配置。
|
||||
/// </summary>
|
||||
public Theme sharedTheme
|
||||
{
|
||||
@@ -39,7 +39,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the background color of chart.
|
||||
/// |背景颜色。
|
||||
/// ||背景颜色。
|
||||
/// </summary>
|
||||
public Color32 backgroundColor
|
||||
{
|
||||
|
||||
@@ -184,7 +184,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Ensure that the transform has the specified component, add it if not.
|
||||
/// |确保对象有指定的组件,如果没有则添加。
|
||||
/// ||确保对象有指定的组件,如果没有则添加。
|
||||
/// </summary>
|
||||
/// <param name="transform"></param>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
@@ -196,7 +196,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Ensure that the game object has the specified component, add it if not.
|
||||
/// | 确保对象有指定的组件,如果没有则添加。
|
||||
/// || 确保对象有指定的组件,如果没有则添加。
|
||||
/// </summary>
|
||||
/// <param name="gameObject"></param>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
|
||||
@@ -153,7 +153,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Limits the minimum size of the editor window.
|
||||
/// |</summary>
|
||||
/// ||</summary>
|
||||
void SetEditorWindowSize()
|
||||
{
|
||||
EditorWindow editorWindow = this;
|
||||
|
||||
@@ -4,18 +4,18 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// The mapping type of heatmap.
|
||||
/// |热力图类型。通过颜色映射划分。
|
||||
/// ||热力图类型。通过颜色映射划分。
|
||||
/// </summary>
|
||||
public enum HeatmapType
|
||||
{
|
||||
/// <summary>
|
||||
/// Data mapping type.By default, the second dimension data is used as the color map.
|
||||
/// |数据映射型。默认用第2维数据作为颜色映射。要求数据至少有3个维度数据。
|
||||
/// ||数据映射型。默认用第2维数据作为颜色映射。要求数据至少有3个维度数据。
|
||||
/// </summary>
|
||||
Data,
|
||||
/// <summary>
|
||||
/// Number mapping type.The number of occurrences of a statistic in a divided grid, as a color map.
|
||||
/// |个数映射型。统计数据在划分的格子中出现的次数,作为颜色映射。要求数据至少有2个维度数据。
|
||||
/// ||个数映射型。统计数据在划分的格子中出现的次数,作为颜色映射。要求数据至少有2个维度数据。
|
||||
/// </summary>
|
||||
Count
|
||||
}
|
||||
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The mapping type of heatmap.
|
||||
/// |热力图类型。通过颜色映射划分。
|
||||
/// ||热力图类型。通过颜色映射划分。
|
||||
/// </summary>
|
||||
public HeatmapType heatmapType
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether to use gradient color in pie chart.
|
||||
/// | 是否开启半径方向的渐变效果。
|
||||
/// || 是否开启半径方向的渐变效果。
|
||||
/// </summary>
|
||||
public bool radiusGradient
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether use smooth curve.
|
||||
/// |是否平滑曲线。平滑曲线时不支持区域填充颜色。
|
||||
/// ||是否平滑曲线。平滑曲线时不支持区域填充颜色。
|
||||
/// </summary>
|
||||
public bool smooth
|
||||
{
|
||||
|
||||
@@ -32,49 +32,49 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The style of area.
|
||||
/// |区域填充样式。
|
||||
/// ||区域填充样式。
|
||||
/// </summary>
|
||||
public AreaStyle areaStyle { get { return m_AreaStyles.Count > 0 ? m_AreaStyles[0] : null; } }
|
||||
/// <summary>
|
||||
/// Text label of graphic element,to explain some data information about graphic item like value, name and so on.
|
||||
/// |图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
|
||||
/// ||图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
|
||||
/// </summary>
|
||||
public LabelStyle label { get { return m_Labels.Count > 0 ? m_Labels[0] : null; } }
|
||||
public LabelStyle endLabel { get { return m_EndLabels.Count > 0 ? m_EndLabels[0] : null; } }
|
||||
/// <summary>
|
||||
/// The line of label.
|
||||
/// |标签上的视觉引导线。
|
||||
/// ||标签上的视觉引导线。
|
||||
/// </summary>
|
||||
public LabelLine labelLine { get { return m_LabelLines.Count > 0 ? m_LabelLines[0] : null; } }
|
||||
/// <summary>
|
||||
/// The arrow of line.
|
||||
/// |折线图的箭头。
|
||||
/// ||折线图的箭头。
|
||||
/// </summary>
|
||||
public LineArrow lineArrow { get { return m_LineArrows.Count > 0 ? m_LineArrows[0] : null; } }
|
||||
/// <summary>
|
||||
/// the icon of data.
|
||||
/// |数据项标题样式。
|
||||
/// ||数据项标题样式。
|
||||
/// </summary>
|
||||
public TitleStyle titleStyle { get { return m_TitleStyles.Count > 0 ? m_TitleStyles[0] : null; } }
|
||||
/// <summary>
|
||||
/// style of emphasis state.
|
||||
/// |高亮状态的样式。
|
||||
/// ||高亮状态的样式。
|
||||
/// </summary>
|
||||
public EmphasisStyle emphasisStyle { get { return m_EmphasisStyles.Count > 0 ? m_EmphasisStyles[0] : null; } }
|
||||
/// <summary>
|
||||
/// style of blur state.
|
||||
/// |淡出状态的样式。
|
||||
/// ||淡出状态的样式。
|
||||
/// </summary>
|
||||
public BlurStyle blurStyle { get { return m_BlurStyles.Count > 0 ? m_BlurStyles[0] : null; } }
|
||||
/// <summary>
|
||||
/// style of select state.
|
||||
/// |选中状态的样式。
|
||||
/// ||选中状态的样式。
|
||||
/// </summary>
|
||||
public SelectStyle selectStyle { get { return m_SelectStyles.Count > 0 ? m_SelectStyles[0] : null; } }
|
||||
|
||||
/// <summary>
|
||||
/// Remove all extra components.
|
||||
/// |移除所有额外组件。
|
||||
/// ||移除所有额外组件。
|
||||
/// </summary>
|
||||
public void RemoveAllComponents()
|
||||
{
|
||||
@@ -99,7 +99,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Ensure the serie has the component. If not, add it.
|
||||
/// |确保系列有该组件。如果没有,则添加。
|
||||
/// ||确保系列有该组件。如果没有,则添加。
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <returns>component or null</returns>
|
||||
|
||||
@@ -6,161 +6,161 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether to show as Nightingale chart, which distinguishs data through radius.
|
||||
/// |是否展示成南丁格尔图,通过半径区分数据大小。
|
||||
/// ||是否展示成南丁格尔图,通过半径区分数据大小。
|
||||
/// </summary>
|
||||
public enum RoseType
|
||||
{
|
||||
/// <summary>
|
||||
/// Don't show as Nightingale chart.
|
||||
/// |不展示成南丁格尔玫瑰图。
|
||||
/// ||不展示成南丁格尔玫瑰图。
|
||||
/// </summary>
|
||||
None,
|
||||
/// <summary>
|
||||
/// Use central angle to show the percentage of data, radius to show data size.
|
||||
/// |扇区圆心角展现数据的百分比,半径展现数据的大小。
|
||||
/// ||扇区圆心角展现数据的百分比,半径展现数据的大小。
|
||||
/// </summary>
|
||||
Radius,
|
||||
/// <summary>
|
||||
/// All the sectors will share the same central angle, the data size is shown only through radiuses.
|
||||
/// |所有扇区圆心角相同,仅通过半径展现数据大小。
|
||||
/// ||所有扇区圆心角相同,仅通过半径展现数据大小。
|
||||
/// </summary>
|
||||
Area
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// the type of line chart.
|
||||
/// |折线图样式类型
|
||||
/// ||折线图样式类型
|
||||
/// </summary>
|
||||
public enum LineType
|
||||
{
|
||||
/// <summary>
|
||||
/// the normal line chart,
|
||||
/// |普通折线图。
|
||||
/// ||普通折线图。
|
||||
/// </summary>
|
||||
Normal,
|
||||
/// <summary>
|
||||
/// the smooth line chart,
|
||||
/// |平滑曲线。
|
||||
/// ||平滑曲线。
|
||||
/// </summary>
|
||||
Smooth,
|
||||
/// <summary>
|
||||
/// step line.
|
||||
/// |阶梯线图:当前点。
|
||||
/// ||阶梯线图:当前点。
|
||||
/// </summary>
|
||||
StepStart,
|
||||
/// <summary>
|
||||
/// step line.
|
||||
/// |阶梯线图:当前点和下一个点的中间。
|
||||
/// ||阶梯线图:当前点和下一个点的中间。
|
||||
/// </summary>
|
||||
StepMiddle,
|
||||
/// <summary>
|
||||
/// step line.
|
||||
/// |阶梯线图:下一个拐点。
|
||||
/// ||阶梯线图:下一个拐点。
|
||||
/// </summary>
|
||||
StepEnd
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// the type of bar.
|
||||
/// |柱状图类型。
|
||||
/// ||柱状图类型。
|
||||
/// </summary>
|
||||
public enum BarType
|
||||
{
|
||||
/// <summary>
|
||||
/// normal bar.
|
||||
/// |普通柱形图。
|
||||
/// ||普通柱形图。
|
||||
/// </summary>
|
||||
Normal,
|
||||
/// <summary>
|
||||
/// zebra bar.
|
||||
/// |斑马柱形图。
|
||||
/// ||斑马柱形图。
|
||||
/// </summary>
|
||||
Zebra,
|
||||
/// <summary>
|
||||
/// capsule bar.
|
||||
/// |胶囊柱形图。
|
||||
/// ||胶囊柱形图。
|
||||
/// </summary>
|
||||
Capsule
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// the type of radar.
|
||||
/// |雷达图类型。
|
||||
/// ||雷达图类型。
|
||||
/// </summary>
|
||||
public enum RadarType
|
||||
{
|
||||
/// <summary>
|
||||
/// multiple radar.
|
||||
/// |多圈雷达图。此时可一个雷达里绘制多个圈,一个serieData就可组成一个圈(多维数据)。
|
||||
/// ||多圈雷达图。此时可一个雷达里绘制多个圈,一个serieData就可组成一个圈(多维数据)。
|
||||
/// </summary>
|
||||
Multiple,
|
||||
/// <summary>
|
||||
/// single radar.
|
||||
/// |单圈雷达图。此时一个雷达只能绘制一个圈,多个serieData组成一个圈,数据取自`data[1]`。
|
||||
/// ||单圈雷达图。此时一个雷达只能绘制一个圈,多个serieData组成一个圈,数据取自`data[1]`。
|
||||
/// </summary>
|
||||
Single
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// sample type of line chart.
|
||||
/// |采样类型,一般用于折线图。
|
||||
/// ||采样类型,一般用于折线图。
|
||||
/// </summary>
|
||||
public enum SampleType
|
||||
{
|
||||
/// <summary>
|
||||
/// Take a peak. When the average value of the filter point is greater than or equal to 'sampleAverage',
|
||||
/// take the maximum value; If you do it the other way around, you get the minimum.
|
||||
/// |取峰值。
|
||||
/// ||取峰值。
|
||||
/// </summary>
|
||||
Peak,
|
||||
/// <summary>
|
||||
/// Take the average of the filter points.
|
||||
/// |取过滤点的平均值。
|
||||
/// ||取过滤点的平均值。
|
||||
/// </summary>
|
||||
Average,
|
||||
/// <summary>
|
||||
/// Take the maximum value of the filter point.
|
||||
/// |取过滤点的最大值。
|
||||
/// ||取过滤点的最大值。
|
||||
/// </summary>
|
||||
Max,
|
||||
/// <summary>
|
||||
/// Take the minimum value of the filter point.
|
||||
/// |取过滤点的最小值。
|
||||
/// ||取过滤点的最小值。
|
||||
/// </summary>
|
||||
Min,
|
||||
/// <summary>
|
||||
/// Take the sum of the filter points.
|
||||
/// |取过滤点的和。
|
||||
/// ||取过滤点的和。
|
||||
/// </summary>
|
||||
Sum
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// the sort type of serie data.
|
||||
/// |数据排序方式。
|
||||
/// ||数据排序方式。
|
||||
/// </summary>
|
||||
public enum SerieDataSortType
|
||||
{
|
||||
/// <summary>
|
||||
/// In the order of data.
|
||||
/// |按数据的顺序。
|
||||
/// ||按数据的顺序。
|
||||
/// </summary>
|
||||
None,
|
||||
/// <summary>
|
||||
/// Sort data in ascending order.
|
||||
/// |升序。
|
||||
/// ||升序。
|
||||
/// </summary>
|
||||
Ascending,
|
||||
/// <summary>
|
||||
/// Sort data in descending order.
|
||||
/// |降序。
|
||||
/// ||降序。
|
||||
/// </summary>
|
||||
Descending,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Alignment mode.
|
||||
/// |对齐方式。文本,图标,图形等的对齐方式。
|
||||
/// ||对齐方式。文本,图标,图形等的对齐方式。
|
||||
/// </summary>
|
||||
public enum Align
|
||||
{
|
||||
@@ -171,56 +171,56 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Serie state. Supports normal, emphasis, blur, and select states.
|
||||
/// |Serie状态。支持正常、高亮、淡出、选中四种状态。
|
||||
/// ||Serie状态。支持正常、高亮、淡出、选中四种状态。
|
||||
/// </summary>
|
||||
public enum SerieState
|
||||
{
|
||||
/// <summary>
|
||||
/// Normal state.
|
||||
/// |正常状态。
|
||||
/// ||正常状态。
|
||||
/// </summary>
|
||||
Normal,
|
||||
/// <summary>
|
||||
/// Emphasis state.
|
||||
/// |高亮状态。
|
||||
/// ||高亮状态。
|
||||
/// </summary>
|
||||
Emphasis,
|
||||
/// <summary>
|
||||
/// Blur state.
|
||||
/// |淡出状态。
|
||||
/// ||淡出状态。
|
||||
/// </summary>
|
||||
Blur,
|
||||
/// <summary>
|
||||
/// Select state.
|
||||
/// |选中状态。
|
||||
/// ||选中状态。
|
||||
/// </summary>
|
||||
Select,
|
||||
/// <summary>
|
||||
/// Auto state.
|
||||
/// |自动保持和父节点一致。一般用在SerieData。
|
||||
/// ||自动保持和父节点一致。一般用在SerieData。
|
||||
/// </summary>
|
||||
Auto
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The policy to take color from theme.
|
||||
/// |从主题中取色策略。
|
||||
/// ||从主题中取色策略。
|
||||
/// </summary>
|
||||
public enum SerieColorBy
|
||||
{
|
||||
/// <summary>
|
||||
/// Select state.
|
||||
/// |默认策略。每种Serie都有自己的默认的取颜色策略。比如Line默认是Series策略,Pie默认是Data策略。
|
||||
/// ||默认策略。每种Serie都有自己的默认的取颜色策略。比如Line默认是Series策略,Pie默认是Data策略。
|
||||
/// </summary>
|
||||
Default,
|
||||
/// <summary>
|
||||
/// assigns the colors in the palette by serie, so that all data in the same series are in the same color.
|
||||
/// |按照系列分配调色盘中的颜色,同一系列中的所有数据都是用相同的颜色。
|
||||
/// ||按照系列分配调色盘中的颜色,同一系列中的所有数据都是用相同的颜色。
|
||||
/// </summary>
|
||||
Serie,
|
||||
/// <summary>
|
||||
/// assigns colors in the palette according to data items, with each data item using a different color.
|
||||
/// |按照数据项分配调色盘中的颜色,每个数据项都使用不同的颜色。
|
||||
/// ||按照数据项分配调色盘中的颜色,每个数据项都使用不同的颜色。
|
||||
/// </summary>
|
||||
Data
|
||||
}
|
||||
@@ -321,33 +321,33 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// event callback when click serie.
|
||||
/// |点击系列时的回调。
|
||||
/// ||点击系列时的回调。
|
||||
/// </summary>
|
||||
public Action<SerieEventData> onClick { get; set; }
|
||||
/// <summary>
|
||||
/// event callback when mouse down on serie.
|
||||
/// |鼠标按下时的回调。
|
||||
/// ||鼠标按下时的回调。
|
||||
/// </summary>
|
||||
public Action<SerieEventData> onDown { get; set; }
|
||||
/// <summary>
|
||||
/// event callback when mouse enter serie.
|
||||
/// |鼠标进入时的回调。
|
||||
/// ||鼠标进入时的回调。
|
||||
/// </summary>
|
||||
public Action<SerieEventData> onEnter { get; set; }
|
||||
/// <summary>
|
||||
/// event callback when mouse leave serie.
|
||||
/// |鼠标离开时的回调。
|
||||
/// ||鼠标离开时的回调。
|
||||
/// </summary>
|
||||
public Action<SerieEventData> onExit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The index of serie.
|
||||
/// |系列索引。
|
||||
/// ||系列索引。
|
||||
/// </summary>
|
||||
public int index { get { return m_Index; } internal set { m_Index = value; } }
|
||||
/// <summary>
|
||||
/// Whether to show serie in chart.
|
||||
/// |系列是否显示在图表上。
|
||||
/// ||系列是否显示在图表上。
|
||||
/// </summary>
|
||||
public bool show
|
||||
{
|
||||
@@ -356,7 +356,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the chart coord system of serie.
|
||||
/// |使用的坐标系。
|
||||
/// ||使用的坐标系。
|
||||
/// </summary>
|
||||
public string coordSystem
|
||||
{
|
||||
@@ -365,7 +365,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the type of serie.
|
||||
/// |系列类型。
|
||||
/// ||系列类型。
|
||||
/// </summary>
|
||||
public string serieType
|
||||
{
|
||||
@@ -374,7 +374,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Series name used for displaying in tooltip and filtering with legend.
|
||||
/// |系列名称,用于 tooltip 的显示,legend 的图例筛选。
|
||||
/// ||系列名称,用于 tooltip 的显示,legend 的图例筛选。
|
||||
/// </summary>
|
||||
public string serieName
|
||||
{
|
||||
@@ -383,12 +383,12 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Legend name. When the serie name is not empty, the legend name is the series name; Otherwise, it is index.
|
||||
/// |图例名称。当系列名称不为空时,图例名称即为系列名称;反之则为索引index。
|
||||
/// ||图例名称。当系列名称不为空时,图例名称即为系列名称;反之则为索引index。
|
||||
/// </summary>
|
||||
public string legendName { get { return string.IsNullOrEmpty(serieName) ? ChartCached.IntToStr(index) : serieName; } }
|
||||
/// <summary>
|
||||
/// The default state of a serie.
|
||||
/// |系列的默认状态。
|
||||
/// ||系列的默认状态。
|
||||
/// </summary>
|
||||
public SerieState state
|
||||
{
|
||||
@@ -397,7 +397,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The policy to take color from theme.
|
||||
/// |从主题中取色的策略。
|
||||
/// ||从主题中取色的策略。
|
||||
/// </summary>
|
||||
public SerieColorBy colorBy
|
||||
{
|
||||
@@ -407,7 +407,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// If stack the value. On the same category axis, the series with the same stack name would be put on top of each other.
|
||||
/// |数据堆叠,同个类目轴上系列配置相同的stack值后,后一个系列的值会在前一个系列的值上相加。
|
||||
/// ||数据堆叠,同个类目轴上系列配置相同的stack值后,后一个系列的值会在前一个系列的值上相加。
|
||||
/// </summary>
|
||||
public string stack
|
||||
{
|
||||
@@ -416,7 +416,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the index of XAxis.
|
||||
/// |使用X轴的index。
|
||||
/// ||使用X轴的index。
|
||||
/// </summary>
|
||||
public int xAxisIndex
|
||||
{
|
||||
@@ -425,7 +425,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the index of YAxis.
|
||||
/// |使用Y轴的index。
|
||||
/// ||使用Y轴的index。
|
||||
/// </summary>
|
||||
public int yAxisIndex
|
||||
{
|
||||
@@ -434,7 +434,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Index of radar component that radar chart uses.
|
||||
/// |雷达图所使用的 radar 组件的 index。
|
||||
/// ||雷达图所使用的 radar 组件的 index。
|
||||
/// </summary>
|
||||
public int radarIndex
|
||||
{
|
||||
@@ -443,7 +443,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Index of vesel component that liquid chart uses.
|
||||
/// |水位图所使用的 vessel 组件的 index。
|
||||
/// ||水位图所使用的 vessel 组件的 index。
|
||||
/// </summary>
|
||||
public int vesselIndex
|
||||
{
|
||||
@@ -452,7 +452,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Index of polar component that serie uses.
|
||||
/// |所使用的 polar 组件的 index。
|
||||
/// ||所使用的 polar 组件的 index。
|
||||
/// </summary>
|
||||
public int polarIndex
|
||||
{
|
||||
@@ -461,7 +461,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>s
|
||||
/// Index of single axis component that serie uses.
|
||||
/// |所使用的 singleAxis 组件的 index。
|
||||
/// ||所使用的 singleAxis 组件的 index。
|
||||
/// </summary>
|
||||
public int singleAxisIndex
|
||||
{
|
||||
@@ -470,7 +470,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>s
|
||||
/// Index of parallel coord component that serie uses.
|
||||
/// |所使用的 parallel coord 组件的 index。
|
||||
/// ||所使用的 parallel coord 组件的 index。
|
||||
/// </summary>
|
||||
public int parallelIndex
|
||||
{
|
||||
@@ -479,7 +479,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Index of layout component that serie uses. Default is -1 means not use layout, otherwise use the first layout component.
|
||||
/// |所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。
|
||||
/// ||所使用的 layout 组件的 index。 默认为-1不指定index, 当为大于或等于0时, 为第一个layout组件的第index个格子。
|
||||
/// </summary>
|
||||
public int gridIndex
|
||||
{
|
||||
@@ -488,7 +488,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The min number of data to show in chart.
|
||||
/// |系列所显示数据的最小索引
|
||||
/// ||系列所显示数据的最小索引
|
||||
/// </summary>
|
||||
public int minShow
|
||||
{
|
||||
@@ -497,7 +497,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The max number of data to show in chart.
|
||||
/// |系列所显示数据的最大索引
|
||||
/// ||系列所显示数据的最大索引
|
||||
/// </summary>
|
||||
public int maxShow
|
||||
{
|
||||
@@ -507,7 +507,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// The max number of serie data cache.
|
||||
/// The first data will be remove when the size of serie data is larger then maxCache.
|
||||
/// |系列中可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。
|
||||
/// ||系列中可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。
|
||||
/// </summary>
|
||||
public int maxCache
|
||||
{
|
||||
@@ -517,7 +517,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the symbol of serie data item.
|
||||
/// |标记的图形。
|
||||
/// ||标记的图形。
|
||||
/// </summary>
|
||||
public SerieSymbol symbol
|
||||
{
|
||||
@@ -526,7 +526,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The type of line chart.
|
||||
/// |折线图样式类型。
|
||||
/// ||折线图样式类型。
|
||||
/// </summary>
|
||||
public LineType lineType
|
||||
{
|
||||
@@ -536,7 +536,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Whether to restrict the curve. When true, the curve between two continuous data of the same value
|
||||
/// is restricted to not exceed the data point, and is flat to the data point.
|
||||
/// |是否限制曲线。当为true时,两个连续相同数值的数据间的曲线会限制为不超出数据点,和数据点是平直的。
|
||||
/// ||是否限制曲线。当为true时,两个连续相同数值的数据间的曲线会限制为不超出数据点,和数据点是平直的。
|
||||
/// </summary>
|
||||
public bool smoothLimit
|
||||
{
|
||||
@@ -545,7 +545,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the min pixel dist of sample.
|
||||
/// |采样的最小像素距离,默认为0时不采样。当两个数据点间的水平距离小于改值时,开启采样,保证两点间的水平距离不小于改值。
|
||||
/// ||采样的最小像素距离,默认为0时不采样。当两个数据点间的水平距离小于改值时,开启采样,保证两点间的水平距离不小于改值。
|
||||
/// </summary>
|
||||
public float sampleDist
|
||||
{
|
||||
@@ -554,7 +554,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the type of sample.
|
||||
/// |采样类型。当sampleDist大于0时有效。
|
||||
/// ||采样类型。当sampleDist大于0时有效。
|
||||
/// </summary>
|
||||
public SampleType sampleType
|
||||
{
|
||||
@@ -571,7 +571,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The style of line.
|
||||
/// |线条样式。
|
||||
/// ||线条样式。
|
||||
/// </summary>
|
||||
public LineStyle lineStyle
|
||||
{
|
||||
@@ -596,7 +596,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The width of the bar. Adaptive when default 0.
|
||||
/// |柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。
|
||||
/// ||柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。
|
||||
/// </summary>
|
||||
public float barWidth
|
||||
{
|
||||
@@ -605,7 +605,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The max width of the bar. Adaptive when default 0.
|
||||
/// |柱条的最大宽度,默认为0为不限制最大宽度。支持设置成相对于类目宽度的百分比。
|
||||
/// ||柱条的最大宽度,默认为0为不限制最大宽度。支持设置成相对于类目宽度的百分比。
|
||||
/// </summary>
|
||||
public float barMaxWidth
|
||||
{
|
||||
@@ -618,7 +618,7 @@ namespace XCharts.Runtime
|
||||
/// In a single coodinate system, this attribute is shared by multiple 'bar' series.
|
||||
/// This attribute should be set on the last 'bar' series in the coodinate system,
|
||||
/// then it will be adopted by all 'bar' series in the coordinate system.
|
||||
/// |不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%)
|
||||
/// ||不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%)
|
||||
/// 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。
|
||||
/// 在同一坐标系上,此属性会被多个 'bar' 系列共享。此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,并且是对此坐标系中所有 'bar' 系列生效。
|
||||
/// </summary>
|
||||
@@ -646,7 +646,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether offset when mouse click pie chart item.
|
||||
/// |鼠标点击时是否开启偏移,一般用在PieChart图表中。
|
||||
/// ||鼠标点击时是否开启偏移,一般用在PieChart图表中。
|
||||
/// </summary>
|
||||
public bool pieClickOffset
|
||||
{
|
||||
@@ -655,7 +655,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to show as Nightingale chart.
|
||||
/// |是否展示成南丁格尔图,通过半径区分数据大小。
|
||||
/// ||是否展示成南丁格尔图,通过半径区分数据大小。
|
||||
/// </summary>
|
||||
public RoseType pieRoseType
|
||||
{
|
||||
@@ -664,7 +664,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// gap of item.
|
||||
/// |间距。
|
||||
/// ||间距。
|
||||
/// </summary>
|
||||
public float gap
|
||||
{
|
||||
@@ -673,7 +673,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the center of chart.
|
||||
/// |中心点。
|
||||
/// ||中心点。
|
||||
/// </summary>
|
||||
public float[] center
|
||||
{
|
||||
@@ -682,7 +682,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the radius of chart.
|
||||
/// |半径。radius[0]表示内径,radius[1]表示外径。
|
||||
/// ||半径。radius[0]表示内径,radius[1]表示外径。
|
||||
/// </summary>
|
||||
public float[] radius
|
||||
{
|
||||
@@ -691,7 +691,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the min radius of chart. It can be used to limit the minimum radius of the rose chart.
|
||||
/// |最小半径。可用于限制玫瑰图的最小半径。
|
||||
/// ||最小半径。可用于限制玫瑰图的最小半径。
|
||||
/// </summary>
|
||||
public float minRadius
|
||||
{
|
||||
@@ -748,7 +748,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The minimum angle of sector(0-360). It prevents some sector from being too small when value is small.
|
||||
/// |最小的扇区角度(0-360)。用于防止某个值过小导致扇区太小影响交互。
|
||||
/// ||最小的扇区角度(0-360)。用于防止某个值过小导致扇区太小影响交互。
|
||||
/// </summary>
|
||||
public float minAngle
|
||||
{
|
||||
@@ -814,7 +814,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The start animation.
|
||||
/// |起始动画。
|
||||
/// ||起始动画。
|
||||
/// </summary>
|
||||
public AnimationStyle animation
|
||||
{
|
||||
@@ -823,7 +823,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// The style of data item.
|
||||
/// |图形样式。
|
||||
/// ||图形样式。
|
||||
/// </summary>
|
||||
public ItemStyle itemStyle
|
||||
{
|
||||
@@ -840,7 +840,7 @@ namespace XCharts.Runtime
|
||||
public bool showDataName { get { return m_ShowDataName; } set { m_ShowDataName = value; } }
|
||||
/// <summary>
|
||||
/// If clip the overflow on the coordinate system.
|
||||
/// |是否裁剪超出坐标系部分的图形。
|
||||
/// ||是否裁剪超出坐标系部分的图形。
|
||||
/// </summary>
|
||||
public bool clip
|
||||
{
|
||||
@@ -849,7 +849,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Show negative number as positive number.
|
||||
/// |将负数数值显示为正数。一般和`AxisLabel`的`showAsPositiveNumber`配合使用。仅在折线图和柱状图中有效。
|
||||
/// ||将负数数值显示为正数。一般和`AxisLabel`的`showAsPositiveNumber`配合使用。仅在折线图和柱状图中有效。
|
||||
/// </summary>
|
||||
public bool showAsPositiveNumber
|
||||
{
|
||||
@@ -868,7 +868,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Turn on the threshold for mass optimization. Enter performance mode only when large is enabled and the amount of data is greater than the threshold.
|
||||
/// |开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。
|
||||
/// ||开启大数量优化的阈值。只有当开启了large并且数据量大于该阀值时才进入性能模式。
|
||||
/// </summary>
|
||||
public int largeThreshold
|
||||
{
|
||||
@@ -877,7 +877,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// If the pie chart and labels are displayed externally, whether to enable the label overlap prevention policy is disabled by default. If labels are crowded and overlapped, the positions of labels are moved to prevent label overlap.
|
||||
/// |在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。
|
||||
/// ||在饼图且标签外部显示的情况下,是否启用防止标签重叠策略,默认关闭,在标签拥挤重叠的情况下会挪动各个标签的位置,防止标签间的重叠。
|
||||
/// </summary>
|
||||
public bool avoidLabelOverlap
|
||||
{
|
||||
@@ -887,7 +887,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Distance between component and the left side of the container.
|
||||
/// |组件离容器左侧的距离。
|
||||
/// ||组件离容器左侧的距离。
|
||||
/// </summary>
|
||||
public float left
|
||||
{
|
||||
@@ -896,7 +896,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between component and the right side of the container.
|
||||
/// |组件离容器右侧的距离。
|
||||
/// ||组件离容器右侧的距离。
|
||||
/// </summary>
|
||||
public float right
|
||||
{
|
||||
@@ -905,7 +905,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between component and the top side of the container.
|
||||
/// |组件离容器上侧的距离。
|
||||
/// ||组件离容器上侧的距离。
|
||||
/// </summary>
|
||||
public float top
|
||||
{
|
||||
@@ -914,7 +914,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Distance between component and the bottom side of the container.
|
||||
/// |组件离容器下侧的距离。
|
||||
/// ||组件离容器下侧的距离。
|
||||
/// </summary>
|
||||
public float bottom
|
||||
{
|
||||
@@ -923,7 +923,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to add new data at the head or at the end of the list.
|
||||
/// |添加新数据时是在列表的头部还是尾部加入。
|
||||
/// ||添加新数据时是在列表的头部还是尾部加入。
|
||||
/// </summary>
|
||||
public bool insertDataToHead
|
||||
{
|
||||
@@ -1080,12 +1080,12 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the serie is highlighted.
|
||||
/// |该系列是否高亮,一般由图例悬停触发。
|
||||
/// ||该系列是否高亮,一般由图例悬停触发。
|
||||
/// </summary>
|
||||
public bool highlight { get; internal set; }
|
||||
/// <summary>
|
||||
/// the count of data list.
|
||||
/// |数据项个数。
|
||||
/// ||数据项个数。
|
||||
/// </summary>
|
||||
public int dataCount { get { return m_Data.Count; } }
|
||||
public bool nameDirty { get { return m_NameDirty; } }
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// A data item of serie.
|
||||
/// |系列中的一个数据项。可存储数据名和1-n维个数据。
|
||||
/// ||系列中的一个数据项。可存储数据名和1-n维个数据。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class SerieData : ChildComponent
|
||||
@@ -63,22 +63,22 @@ namespace XCharts.Runtime
|
||||
private bool m_Show = true;
|
||||
/// <summary>
|
||||
/// the index of SerieData.
|
||||
/// |数据项索引。
|
||||
/// ||数据项索引。
|
||||
/// </summary>
|
||||
public override int index { get { return m_Index; } set { m_Index = value; } }
|
||||
/// <summary>
|
||||
/// the name of data item.
|
||||
/// |数据项名称。
|
||||
/// ||数据项名称。
|
||||
/// </summary>
|
||||
public string name { get { return m_Name; } set { m_Name = value; } }
|
||||
/// <summary>
|
||||
/// the id of data.
|
||||
/// |数据项的唯一id。唯一id不是必须设置的。
|
||||
/// ||数据项的唯一id。唯一id不是必须设置的。
|
||||
/// </summary>
|
||||
public string id { get { return m_Id; } set { m_Id = value; } }
|
||||
/// <summary>
|
||||
/// the id of parent SerieData.
|
||||
/// |父节点id。父节点id不是必须设置的。
|
||||
/// ||父节点id。父节点id不是必须设置的。
|
||||
/// </summary>
|
||||
public string parentId { get { return m_ParentId; } set { m_ParentId = value; } }
|
||||
/// <summary>
|
||||
@@ -95,12 +95,12 @@ namespace XCharts.Runtime
|
||||
public float radius { get { return m_Radius; } set { m_Radius = value; } }
|
||||
/// <summary>
|
||||
/// Whether the data item is selected.
|
||||
/// |该数据项是否被选中。
|
||||
/// ||该数据项是否被选中。
|
||||
/// </summary>
|
||||
public bool selected { get { return m_Selected; } set { m_Selected = value; } }
|
||||
/// <summary>
|
||||
/// the state of serie data.
|
||||
/// |数据项的默认状态。
|
||||
/// ||数据项的默认状态。
|
||||
/// </summary>
|
||||
public SerieState state { get { return m_State; } set { m_State = value; } }
|
||||
/// <summary>
|
||||
@@ -140,12 +140,12 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// An arbitrary dimension data list of data item.
|
||||
/// |可指定任意维数的数值列表。
|
||||
/// ||可指定任意维数的数值列表。
|
||||
/// </summary>
|
||||
public List<double> data { get { return m_Data; } set { m_Data = value; } }
|
||||
/// <summary>
|
||||
/// [default:true] Whether the data item is showed.
|
||||
/// |该数据项是否要显示。
|
||||
/// ||该数据项是否要显示。
|
||||
/// </summary>
|
||||
public bool show { get { return m_Show; } set { m_Show = value; } }
|
||||
|
||||
@@ -270,7 +270,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Get the component of the serie data. return null if not exist.
|
||||
/// |获取数据项的指定类型的组件,如果不存在则返回null。
|
||||
/// ||获取数据项的指定类型的组件,如果不存在则返回null。
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <returns></returns>
|
||||
@@ -281,7 +281,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Ensure the serie data has the component, if not, add it.
|
||||
/// |确保数据项有指定类型的组件,如果没有则添加。
|
||||
/// ||确保数据项有指定类型的组件,如果没有则添加。
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <returns></returns>
|
||||
@@ -293,7 +293,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Ensure the serie data has the component, if not, add it.
|
||||
/// |确保数据项有指定类型的组件,如果没有则添加。
|
||||
/// ||确保数据项有指定类型的组件,如果没有则添加。
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns></returns>
|
||||
@@ -643,7 +643,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the maxinum value.
|
||||
/// |最大值。
|
||||
/// ||最大值。
|
||||
/// </summary>
|
||||
public double GetMaxData(bool inverse = false)
|
||||
{
|
||||
@@ -659,7 +659,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the mininum value.
|
||||
/// |最小值。
|
||||
/// ||最小值。
|
||||
/// </summary>
|
||||
public double GetMinData(bool inverse = false)
|
||||
{
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace XCharts.Runtime
|
||||
public Image symbol;
|
||||
/// <summary>
|
||||
/// Whether the data item is highlighted.
|
||||
/// |该数据项是否被高亮,一般由鼠标悬停或图例悬停触发高亮。
|
||||
/// ||该数据项是否被高亮,一般由鼠标悬停或图例悬停触发高亮。
|
||||
/// </summary>
|
||||
public bool highlight
|
||||
{
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Gets the maximum and minimum values of the specified dimension of a serie.
|
||||
/// |获得系列指定维数的最大最小值。
|
||||
/// ||获得系列指定维数的最大最小值。
|
||||
/// </summary>
|
||||
/// <param name="serie">指定系列</param>
|
||||
/// <param name="dimension">指定维数</param>
|
||||
@@ -153,7 +153,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Gets the maximum and minimum values of all data in the serie.
|
||||
/// |获得系列所有数据的最大最小值。
|
||||
/// ||获得系列所有数据的最大最小值。
|
||||
/// </summary>
|
||||
/// <param name="serie"></param>
|
||||
/// <param name="min"></param>
|
||||
@@ -194,7 +194,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Whether the data for the specified dimension of serie are all 0.
|
||||
/// |系列指定维数的数据是否全部为0。
|
||||
/// ||系列指定维数的数据是否全部为0。
|
||||
/// </summary>
|
||||
/// <param name="serie">系列</param>
|
||||
/// <param name="dimension">指定维数</param>
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the type of line.
|
||||
/// |坐标轴线类型。
|
||||
/// ||坐标轴线类型。
|
||||
/// </summary>
|
||||
public LineStyle.Type lineType
|
||||
{
|
||||
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the width of line.
|
||||
/// |坐标轴线宽。
|
||||
/// ||坐标轴线宽。
|
||||
/// </summary>
|
||||
public float lineWidth
|
||||
{
|
||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the length of line.
|
||||
/// |坐标轴线长。
|
||||
/// ||坐标轴线长。
|
||||
/// </summary>
|
||||
public float lineLength
|
||||
{
|
||||
@@ -53,7 +53,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of line.
|
||||
/// |坐标轴线颜色。
|
||||
/// ||坐标轴线颜色。
|
||||
/// </summary>
|
||||
public Color32 lineColor
|
||||
{
|
||||
@@ -62,7 +62,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the type of split line.
|
||||
/// |分割线线类型。
|
||||
/// ||分割线线类型。
|
||||
/// </summary>
|
||||
public LineStyle.Type splitLineType
|
||||
{
|
||||
@@ -71,7 +71,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the width of split line.
|
||||
/// |分割线线宽。
|
||||
/// ||分割线线宽。
|
||||
/// </summary>
|
||||
public float splitLineWidth
|
||||
{
|
||||
@@ -80,7 +80,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the length of split line.
|
||||
/// |分割线线长。
|
||||
/// ||分割线线长。
|
||||
/// </summary>
|
||||
public float splitLineLength
|
||||
{
|
||||
@@ -89,7 +89,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of split line.
|
||||
/// |分割线线颜色。
|
||||
/// ||分割线线颜色。
|
||||
/// </summary>
|
||||
public Color32 splitLineColor
|
||||
{
|
||||
@@ -98,7 +98,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of minor split line.
|
||||
/// |次分割线线颜色。
|
||||
/// ||次分割线线颜色。
|
||||
/// </summary>
|
||||
public Color32 minorSplitLineColor
|
||||
{
|
||||
@@ -107,7 +107,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the length of tick.
|
||||
/// |刻度线线长。
|
||||
/// ||刻度线线长。
|
||||
/// </summary>
|
||||
public float tickLength
|
||||
{
|
||||
@@ -116,7 +116,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the width of tick.
|
||||
/// |刻度线线宽。
|
||||
/// ||刻度线线宽。
|
||||
/// </summary>
|
||||
public float tickWidth
|
||||
{
|
||||
@@ -125,7 +125,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of tick.
|
||||
/// |坐标轴线颜色。
|
||||
/// ||坐标轴线颜色。
|
||||
/// </summary>
|
||||
public Color32 tickColor
|
||||
{
|
||||
@@ -134,7 +134,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the colors of split area.
|
||||
/// |坐标轴分隔区域的颜色。
|
||||
/// ||坐标轴分隔区域的颜色。
|
||||
/// </summary>
|
||||
public List<Color32> splitAreaColors
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the font of text.
|
||||
/// |字体。
|
||||
/// ||字体。
|
||||
/// </summary>
|
||||
public Font font
|
||||
{
|
||||
@@ -28,7 +28,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of text.
|
||||
/// |文本颜色。
|
||||
/// ||文本颜色。
|
||||
/// </summary>
|
||||
public Color textColor
|
||||
{
|
||||
@@ -37,7 +37,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of text.
|
||||
/// |文本颜色。
|
||||
/// ||文本颜色。
|
||||
/// </summary>
|
||||
public Color textBackgroundColor
|
||||
{
|
||||
@@ -46,7 +46,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the font size of text.
|
||||
/// |文本字体大小。
|
||||
/// ||文本字体大小。
|
||||
/// </summary>
|
||||
public int fontSize
|
||||
{
|
||||
@@ -57,7 +57,7 @@ namespace XCharts.Runtime
|
||||
#if dUI_TextMeshPro
|
||||
/// <summary>
|
||||
/// the font of chart text。
|
||||
/// |字体。
|
||||
/// ||字体。
|
||||
/// </summary>
|
||||
public TMP_FontAsset tmpFont
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the width of border line.
|
||||
/// |边框线宽。
|
||||
/// ||边框线宽。
|
||||
/// </summary>
|
||||
public float borderWidth
|
||||
{
|
||||
@@ -25,7 +25,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the width of data line.
|
||||
/// |数据阴影线宽。
|
||||
/// ||数据阴影线宽。
|
||||
/// </summary>
|
||||
public float dataLineWidth
|
||||
{
|
||||
@@ -34,7 +34,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of dataZoom data area.
|
||||
/// |数据区域颜色。
|
||||
/// ||数据区域颜色。
|
||||
/// </summary>
|
||||
public Color32 fillerColor
|
||||
{
|
||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the color of dataZoom border.
|
||||
/// |边框颜色。
|
||||
/// ||边框颜色。
|
||||
/// </summary>
|
||||
public Color32 borderColor
|
||||
{
|
||||
@@ -53,7 +53,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of data area line.
|
||||
/// |数据阴影的线条颜色。
|
||||
/// ||数据阴影的线条颜色。
|
||||
/// </summary>
|
||||
public Color32 dataLineColor
|
||||
{
|
||||
@@ -62,7 +62,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of data area line.
|
||||
/// |数据阴影的填充颜色。
|
||||
/// ||数据阴影的填充颜色。
|
||||
/// </summary>
|
||||
public Color32 dataAreaColor
|
||||
{
|
||||
@@ -71,7 +71,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the background color of datazoom.
|
||||
/// |背景颜色。
|
||||
/// ||背景颜色。
|
||||
/// </summary>
|
||||
public Color32 backgroundColor
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the color of text.
|
||||
/// |文本颜色。
|
||||
/// ||文本颜色。
|
||||
/// </summary>
|
||||
public Color unableColor
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the color of text.
|
||||
/// |文本颜色。
|
||||
/// ||文本颜色。
|
||||
/// </summary>
|
||||
public float lineWidth
|
||||
{
|
||||
@@ -26,7 +26,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the symbol size of line serie.
|
||||
/// |折线图的Symbol大小。
|
||||
/// ||折线图的Symbol大小。
|
||||
/// </summary>
|
||||
public float lineSymbolSize
|
||||
{
|
||||
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the symbol size of scatter serie.
|
||||
/// |散点图的Symbol大小。
|
||||
/// ||散点图的Symbol大小。
|
||||
/// </summary>
|
||||
public float scatterSymbolSize
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Theme.
|
||||
/// |主题相关配置。
|
||||
/// ||主题相关配置。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class Theme : ScriptableObject
|
||||
@@ -42,7 +42,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the theme of chart.
|
||||
/// |主题类型。
|
||||
/// ||主题类型。
|
||||
/// </summary>
|
||||
public ThemeType themeType
|
||||
{
|
||||
@@ -51,7 +51,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the name of theme.
|
||||
/// |主题名称。
|
||||
/// ||主题名称。
|
||||
/// </summary>
|
||||
public string themeName
|
||||
{
|
||||
@@ -61,7 +61,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the contrast color of chart.
|
||||
/// |对比色。
|
||||
/// ||对比色。
|
||||
/// </summary>
|
||||
public Color32 contrastColor
|
||||
{
|
||||
@@ -70,7 +70,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the background color of chart.
|
||||
/// |背景颜色。
|
||||
/// ||背景颜色。
|
||||
/// </summary>
|
||||
public Color32 backgroundColor
|
||||
{
|
||||
@@ -80,7 +80,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The color list of palette. If no color is set in series, the colors would be adopted sequentially and circularly from this list as the colors of series.
|
||||
/// |调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。
|
||||
/// ||调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。
|
||||
/// </summary>
|
||||
public List<Color32> colorPalette { get { return m_ColorPalette; } set { m_ColorPalette = value; } }
|
||||
public ComponentTheme common { get { return m_Common; } set { m_Common = value; } }
|
||||
@@ -95,7 +95,7 @@ namespace XCharts.Runtime
|
||||
#if dUI_TextMeshPro
|
||||
/// <summary>
|
||||
/// the font of chart text。
|
||||
/// |主题字体。
|
||||
/// ||主题字体。
|
||||
/// </summary>
|
||||
public TMP_FontAsset tmpFont
|
||||
{
|
||||
@@ -109,7 +109,7 @@ namespace XCharts.Runtime
|
||||
#endif
|
||||
/// <summary>
|
||||
/// the font of chart text。
|
||||
/// |主题字体。
|
||||
/// ||主题字体。
|
||||
/// </summary>
|
||||
public Font font
|
||||
{
|
||||
@@ -142,7 +142,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color of the specified index from the palette.
|
||||
/// |获得调色盘对应系列索引的颜色值。
|
||||
/// ||获得调色盘对应系列索引的颜色值。
|
||||
/// </summary>
|
||||
/// <param name="index">编号索引</param>
|
||||
/// <returns>the color,or Color.clear when failed.颜色值,失败时返回Color.clear</returns>
|
||||
@@ -182,7 +182,7 @@ namespace XCharts.Runtime
|
||||
Dictionary<int, string> _colorDic = new Dictionary<int, string>();
|
||||
/// <summary>
|
||||
/// Gets the hexadecimal color string of the specified index from the palette.
|
||||
/// |获得指定索引的十六进制颜色值字符串。
|
||||
/// ||获得指定索引的十六进制颜色值字符串。
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
/// <returns></returns>
|
||||
@@ -217,7 +217,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// copy all configurations from theme.
|
||||
/// |复制主题的所有配置。
|
||||
/// ||复制主题的所有配置。
|
||||
/// </summary>
|
||||
/// <param name="theme"></param>
|
||||
public void CopyTheme(Theme theme)
|
||||
@@ -243,7 +243,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Clear all custom configurations.
|
||||
/// |重置,清除所有自定义配置。
|
||||
/// ||重置,清除所有自定义配置。
|
||||
/// </summary>
|
||||
public bool ResetTheme()
|
||||
{
|
||||
@@ -275,7 +275,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// default theme.
|
||||
/// |默认主题。
|
||||
/// ||默认主题。
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public static void ResetToDefaultTheme(Theme theme)
|
||||
@@ -301,7 +301,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// dark theme.
|
||||
/// |暗主题。
|
||||
/// ||暗主题。
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public static void ResetToDarkTheme(Theme theme)
|
||||
@@ -380,7 +380,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Convert the html string to color.
|
||||
/// |将字符串颜色值转成Color。
|
||||
/// ||将字符串颜色值转成Color。
|
||||
/// </summary>
|
||||
/// <param name="hexColorStr"></param>
|
||||
/// <returns></returns>
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace XCharts.Runtime
|
||||
[Serializable]
|
||||
/// <summary>
|
||||
/// Theme.
|
||||
/// |主题相关配置。
|
||||
/// ||主题相关配置。
|
||||
/// </summary>
|
||||
public class ThemeStyle : ChildComponent
|
||||
{
|
||||
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
|
||||
public bool show { get { return m_Show; } }
|
||||
/// <summary>
|
||||
/// the theme of chart.
|
||||
/// |主题类型。
|
||||
/// ||主题类型。
|
||||
/// </summary>
|
||||
public ThemeType themeType
|
||||
{
|
||||
@@ -60,7 +60,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// theme name.
|
||||
/// |主题名字。
|
||||
/// ||主题名字。
|
||||
/// </summary>
|
||||
public string themeName
|
||||
{
|
||||
@@ -68,7 +68,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the asset of theme.
|
||||
/// |主题配置。
|
||||
/// ||主题配置。
|
||||
/// </summary>
|
||||
public Theme sharedTheme
|
||||
{
|
||||
@@ -77,7 +77,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the contrast color of chart.
|
||||
/// |对比色。
|
||||
/// ||对比色。
|
||||
/// </summary>
|
||||
public Color32 contrastColor
|
||||
{
|
||||
@@ -85,7 +85,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the background color of chart.
|
||||
/// |背景颜色。
|
||||
/// ||背景颜色。
|
||||
/// </summary>
|
||||
public Color32 backgroundColor
|
||||
{
|
||||
@@ -97,7 +97,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the background color is transparent. When true, the background color is not drawn.
|
||||
/// |是否透明背景颜色。当设置为true时,不绘制背景颜色。
|
||||
/// ||是否透明背景颜色。当设置为true时,不绘制背景颜色。
|
||||
/// </summary>
|
||||
public bool transparentBackground
|
||||
{
|
||||
@@ -107,7 +107,7 @@ namespace XCharts.Runtime
|
||||
/// <summary>
|
||||
/// Whether to customize theme colors. When set to true,
|
||||
/// you can use 'sync color to custom' to synchronize the theme color to the custom color. It can also be set manually.
|
||||
/// |是否自定义主题颜色。当设置为true时,可以用‘sync color to custom’同步主题的颜色到自定义颜色。也可以手动设置。
|
||||
/// ||是否自定义主题颜色。当设置为true时,可以用‘sync color to custom’同步主题的颜色到自定义颜色。也可以手动设置。
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public bool enableCustomTheme
|
||||
@@ -117,7 +117,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the custom background color of chart.
|
||||
/// |自定义的背景颜色。
|
||||
/// ||自定义的背景颜色。
|
||||
/// </summary>
|
||||
public Color32 customBackgroundColor
|
||||
{
|
||||
@@ -127,7 +127,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// The color list of palette. If no color is set in series, the colors would be adopted sequentially and circularly from this list as the colors of series.
|
||||
/// |调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。
|
||||
/// ||调色盘颜色列表。如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。
|
||||
/// </summary>
|
||||
public List<Color32> colorPalette
|
||||
{
|
||||
@@ -146,7 +146,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Gets the color of the specified index from the palette.
|
||||
/// |获得调色盘对应系列索引的颜色值。
|
||||
/// ||获得调色盘对应系列索引的颜色值。
|
||||
/// </summary>
|
||||
/// <param name="index">编号索引</param>
|
||||
/// <returns>the color,or Color.clear when failed.颜色值,失败时返回Color.clear</returns>
|
||||
@@ -206,7 +206,7 @@ namespace XCharts.Runtime
|
||||
Dictionary<int, string> _colorDic = new Dictionary<int, string>();
|
||||
/// <summary>
|
||||
/// Gets the hexadecimal color string of the specified index from the palette.
|
||||
/// |获得指定索引的十六进制颜色值字符串。
|
||||
/// ||获得指定索引的十六进制颜色值字符串。
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
/// <returns></returns>
|
||||
@@ -227,7 +227,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Convert the html string to color.
|
||||
/// |将字符串颜色值转成Color。
|
||||
/// ||将字符串颜色值转成Color。
|
||||
/// </summary>
|
||||
/// <param name="hexColorStr"></param>
|
||||
/// <returns></returns>
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the type of line.
|
||||
/// |坐标轴线类型。
|
||||
/// ||坐标轴线类型。
|
||||
/// </summary>
|
||||
public LineStyle.Type lineType
|
||||
{
|
||||
@@ -25,7 +25,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the width of line.
|
||||
/// |指示线线宽。
|
||||
/// ||指示线线宽。
|
||||
/// </summary>
|
||||
public float lineWidth
|
||||
{
|
||||
@@ -34,7 +34,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of line.
|
||||
/// |指示线颜色。
|
||||
/// ||指示线颜色。
|
||||
/// </summary>
|
||||
public Color32 lineColor
|
||||
{
|
||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the color of line.
|
||||
/// |区域指示的颜色。
|
||||
/// ||区域指示的颜色。
|
||||
/// </summary>
|
||||
public Color32 areaColor
|
||||
{
|
||||
@@ -53,7 +53,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the text color of tooltip cross indicator's axis label.
|
||||
/// |十字指示器坐标轴标签的文本颜色。
|
||||
/// ||十字指示器坐标轴标签的文本颜色。
|
||||
/// </summary>
|
||||
public Color32 labelTextColor
|
||||
{
|
||||
@@ -63,7 +63,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the background color of tooltip cross indicator's axis label.
|
||||
/// |十字指示器坐标轴标签的背景颜色。
|
||||
/// ||十字指示器坐标轴标签的背景颜色。
|
||||
/// </summary>
|
||||
public Color32 labelBackgroundColor
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the width of border.
|
||||
/// |边框线宽。
|
||||
/// ||边框线宽。
|
||||
/// </summary>
|
||||
public float borderWidth
|
||||
{
|
||||
@@ -22,7 +22,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
/// <summary>
|
||||
/// the color of dataZoom border.
|
||||
/// |边框颜色。
|
||||
/// ||边框颜色。
|
||||
/// </summary>
|
||||
public Color32 borderColor
|
||||
{
|
||||
@@ -32,7 +32,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// the background color of visualmap.
|
||||
/// |背景颜色。
|
||||
/// ||背景颜色。
|
||||
/// </summary>
|
||||
public Color32 backgroundColor
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace XCharts.Runtime
|
||||
|
||||
/// <summary>
|
||||
/// Convert the html string to color.
|
||||
/// |将字符串颜色值转成Color。
|
||||
/// ||将字符串颜色值转成Color。
|
||||
/// </summary>
|
||||
/// <param name="hexColorStr"></param>
|
||||
/// <returns></returns>
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Log system. Used to output logs with date and log type, support output to file, support custom output log type.
|
||||
/// |日志系统。用于输出带日期和日志类型的日志,支持输出到文件,支持自定义输出的日志类型。
|
||||
/// ||日志系统。用于输出带日期和日志类型的日志,支持输出到文件,支持自定义输出的日志类型。
|
||||
/// </summary>
|
||||
public class XLog : MonoBehaviour
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace XUGL
|
||||
{
|
||||
/// <summary>
|
||||
/// UGUI Graphics Library.
|
||||
/// |UGUI 图形库
|
||||
/// ||UGUI 图形库
|
||||
/// </summary>
|
||||
public static class UGL
|
||||
{
|
||||
@@ -2067,7 +2067,7 @@ namespace XUGL
|
||||
|
||||
/// <summary>
|
||||
/// Draw plus sign.
|
||||
/// |绘制加号
|
||||
/// ||绘制加号
|
||||
/// </summary>
|
||||
/// <param name="vh"></param>
|
||||
/// <param name="center"></param>
|
||||
@@ -2086,7 +2086,7 @@ namespace XUGL
|
||||
|
||||
/// <summary>
|
||||
/// Draw minus sign.
|
||||
/// |绘制减号
|
||||
/// ||绘制减号
|
||||
/// </summary>
|
||||
/// <param name="vh"></param>
|
||||
/// <param name="center"></param>
|
||||
|
||||
Reference in New Issue
Block a user