mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-28 20:28:46 +00:00
3.0
This commit is contained in:
54
CHANGELOG.md
54
CHANGELOG.md
@@ -2,6 +2,10 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
[master](#master)
|
[master](#master)
|
||||||
|
[v2.7.0](#v2.7.0)
|
||||||
|
[v2.6.0](#v2.6.0)
|
||||||
|
[v2.5.0](#v2.5.0)
|
||||||
|
[v2.4.0](#v2.4.0)
|
||||||
[v2.3.0](#v2.3.0)
|
[v2.3.0](#v2.3.0)
|
||||||
[v2.2.3](#v2.2.3)
|
[v2.2.3](#v2.2.3)
|
||||||
[v2.2.2](#v2.2.2)
|
[v2.2.2](#v2.2.2)
|
||||||
@@ -39,7 +43,55 @@
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
* (2021.08.15) 修复`DataZoom`开启时重新添加数据后图表数据显示异常的问题 (#163)
|
## v2.7.0
|
||||||
|
|
||||||
|
* (2022.03.20) 发布`v2.7.0`版本
|
||||||
|
* (2022.02.21) 修复`Chart`的`chartName`重复检测问题 #183
|
||||||
|
* (2022.02.17) 修复`Axis`的`SplitLine`可能会显示在坐标系外的问题 #181
|
||||||
|
* (2022.02.08) 修复数据全0时`{d}`显示不正确的问题
|
||||||
|
* (2022.02.08) 修复`YAxis`的`AxisLabel`的`onZero`参数不生效的问题
|
||||||
|
* (2022.01.06) 优化`Zebra`斑马柱图
|
||||||
|
|
||||||
|
## v2.6.0
|
||||||
|
|
||||||
|
* (2021.12.30) 发布`v2.6.0`版本
|
||||||
|
* (2021.12.21) 修复`Emphasis`不生效的问题
|
||||||
|
* (2021.12.17) 修复`MarkLine`在运行时`Label`不自动刷新显示隐藏的问题 #178
|
||||||
|
* (2021.12.10) 完善`Radar`的`AxisLine`和`SplitLine`可单独控制
|
||||||
|
* (2021.12.08) 修复`Serie`隐藏后`Y`轴最大值不刷新的问题
|
||||||
|
* (2021.12.04) 增加`Symbol`新类型:`EmptyRect`,`EmptyTriangle`,`EmptyDiamond`
|
||||||
|
* (2021.12.04) 增加`Symbol`的`Empty`区域颜色可通过`ItemStyle`的`backgroundColor`设置的支持
|
||||||
|
* (2021.12.03) 修复`Formatter`的`{c}`通配符不生效的问题 #175
|
||||||
|
* (2021.12.03) 修复`Axis`的`boundaryGap`某些情况下显示的问题 #174
|
||||||
|
* (2021.11.30) 修复`Serie`的`ignore`某些情况下绘制异常的问题 #173
|
||||||
|
|
||||||
|
## v2.5.0
|
||||||
|
|
||||||
|
* (2021.11.27) 发布`v2.5.0`版本
|
||||||
|
* (2021.11.27) 增加`Tooltip`的`positionFunction`的坐标设置委托函数
|
||||||
|
* (2021.10.29) 移除`XCharts`首次导入时`TextMeshPro`的相关设置
|
||||||
|
* (2021.10.29) 增加`Tooltip`对通配符`{e}`的支持 #170
|
||||||
|
* (2021.09.08) 完善`RadarChart`
|
||||||
|
* (2021.09.07) 修复`PieChart`渐出动画结束时`label`没有消失的问题 #168
|
||||||
|
* (2021.09.06) 修复`GaugeChart`用代码改变`splitNumber`不会刷新`label`的问题 #167
|
||||||
|
|
||||||
|
## v2.4.0
|
||||||
|
|
||||||
|
### 版本要点
|
||||||
|
|
||||||
|
* 折线图支持忽略数据的连线是断开还是连接
|
||||||
|
* 折线图支持轨迹匀速动画
|
||||||
|
* 其他优化和问题修复
|
||||||
|
|
||||||
|
### 日志详情
|
||||||
|
|
||||||
|
* (2021.08.31) 发布`v2.4.0`版本
|
||||||
|
* (2021.08.31) 优化`RingChart`的渐变效果
|
||||||
|
* (2021.08.31) 修复`DataZoom`拖动时`SerieLabel`不刷新的问题 (#165)
|
||||||
|
* (2021.08.25) 修复`Theme`主题切换无法保持到场景上的问题 (#166)
|
||||||
|
* (2021.08.24) 增加`Animation`的`alongWithLinePath`参数设置折线轨迹匀速动画
|
||||||
|
* (2021.08.22) 增加`Serie`的`ignoreLineBreak`参数设置忽略数据连线是否断开 (#164)
|
||||||
|
* (2021.08.22) 修复`Axis`在`DataZoom`开启时`Label`可能不更新的问题 (#164)
|
||||||
* (2021.08.15) 优化`Axis`的`AxisLabel`文本旋转设置,避免在DataZoom开启时偏移不一致 (#163)
|
* (2021.08.15) 优化`Axis`的`AxisLabel`文本旋转设置,避免在DataZoom开启时偏移不一致 (#163)
|
||||||
* (2021.08.14) 增加`Legend`的`textAutoColor`设置文本颜色和`Serie`一致 (#163)
|
* (2021.08.14) 增加`Legend`的`textAutoColor`设置文本颜色和`Serie`一致 (#163)
|
||||||
* (2021.08.12) 优化`BarChart`设置`Corner`时正负柱条圆角对称
|
* (2021.08.12) 优化`BarChart`设置`Corner`时正负柱条圆角对称
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace XCharts.Editor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[CustomPropertyDrawer(typeof(VisualMap.Pieces), true)]
|
[CustomPropertyDrawer(typeof(VisualMapPieces), true)]
|
||||||
public class PiecesDrawer : BasePropertyDrawer
|
public class PiecesDrawer : BasePropertyDrawer
|
||||||
{
|
{
|
||||||
public override string ClassName { get { return "Pieces"; } }
|
public override string ClassName { get { return "Pieces"; } }
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace XCharts.Editor
|
|||||||
public static void CheckAddedAsset(string assetPath)
|
public static void CheckAddedAsset(string assetPath)
|
||||||
{
|
{
|
||||||
var fileName = Path.GetFileName(assetPath);
|
var fileName = Path.GetFileName(assetPath);
|
||||||
if (fileName.Equals("XChartsSettings.asset"))
|
if (fileName.Equals("XCSettings.asset"))
|
||||||
{
|
{
|
||||||
XCThemeMgr.ReloadThemeList();
|
XCThemeMgr.ReloadThemeList();
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ namespace XCharts.Editor
|
|||||||
{
|
{
|
||||||
var parent = GetParent();
|
var parent = GetParent();
|
||||||
if (parent == null) return null;
|
if (parent == null) return null;
|
||||||
|
XCThemeMgr.CheckReloadTheme();
|
||||||
var chart = new GameObject();
|
var chart = new GameObject();
|
||||||
chart.name = GetName(parent, chartName);
|
chart.name = GetName(parent, chartName);
|
||||||
var t = chart.AddComponent<T>();
|
var t = chart.AddComponent<T>();
|
||||||
|
|||||||
@@ -63,9 +63,9 @@
|
|||||||
|
|
||||||
## XCharts3.0 比 2.0 的改进
|
## XCharts3.0 比 2.0 的改进
|
||||||
|
|
||||||
* 更具可读、可扩展和可维护性的底层框架。
|
* 更健壮的底层框架。
|
||||||
|
* 更小的序列化文件。
|
||||||
* 更强大的性能。
|
* 更强大的性能。
|
||||||
* 更小的存储文件。
|
|
||||||
* 更好的交互体验。
|
* 更好的交互体验。
|
||||||
* 更多的组件支持。
|
* 更多的组件支持。
|
||||||
* 更合理的组件调整。
|
* 更合理的组件调整。
|
||||||
@@ -79,10 +79,10 @@
|
|||||||
* 增加SingleAxis单轴。
|
* 增加SingleAxis单轴。
|
||||||
* 增加多种坐标系:Grid、Polar、Radar、SingleAxis。
|
* 增加多种坐标系:Grid、Polar、Radar、SingleAxis。
|
||||||
* 增加多种动画方式。
|
* 增加多种动画方式。
|
||||||
* 增加更细致的图表交互。
|
* 增加多种图表交互。
|
||||||
* 增加国际化支持。
|
* 增加国际化支持。
|
||||||
* 增加Widgets小组件。
|
* 增加Widgets小组件。
|
||||||
* 增加更多扩展图表。
|
* 增加多种扩展图表。
|
||||||
|
|
||||||
## 截图
|
## 截图
|
||||||
|
|
||||||
|
|||||||
@@ -9,32 +9,32 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// he default. An animation playback mode will be selected according to the actual situation.
|
/// he default. An animation playback mode will be selected according to the actual situation.
|
||||||
/// 默认。内部会根据实际情况选择一种动画播放方式。
|
/// |默认。内部会根据实际情况选择一种动画播放方式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Default,
|
Default,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Play the animation from left to right.
|
/// Play the animation from left to right.
|
||||||
/// 从左往右播放动画。
|
/// |从左往右播放动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
LeftToRight,
|
LeftToRight,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Play the animation from bottom to top.
|
/// Play the animation from bottom to top.
|
||||||
/// 从下往上播放动画。
|
/// |从下往上播放动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
BottomToTop,
|
BottomToTop,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Play animations from the inside out.
|
/// Play animations from the inside out.
|
||||||
/// 由内到外播放动画。
|
/// |由内到外播放动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
InsideOut,
|
InsideOut,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Play the animation along the path.
|
/// Play the animation along the path.
|
||||||
/// 沿着路径播放动画。
|
/// |沿着路径播放动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
AlongPath,
|
AlongPath,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Play the animation clockwise.
|
/// Play the animation clockwise.
|
||||||
/// 顺时针播放动画。
|
/// |顺时针播放动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Clockwise,
|
Clockwise,
|
||||||
}
|
}
|
||||||
@@ -46,7 +46,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the animation of serie.
|
/// the animation of serie.
|
||||||
/// 动画表现。
|
/// |动画表现。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class AnimationStyle : ChildComponent
|
public class AnimationStyle : ChildComponent
|
||||||
@@ -83,42 +83,42 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to enable animation.
|
/// Whether to enable animation.
|
||||||
/// 是否开启动画效果。
|
/// |是否开启动画效果。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool enable { get { return m_Enable; } set { m_Enable = value; } }
|
public bool enable { get { return m_Enable; } set { m_Enable = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of animation.
|
/// The type of animation.
|
||||||
/// 动画类型。
|
/// |动画类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AnimationType type { get { return m_Type; } set { m_Type = value; } }
|
public AnimationType type { get { return m_Type; } set { m_Type = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Easing method used for the first animation.
|
/// Easing method used for the first animation.
|
||||||
/// 动画的缓动效果。
|
/// |动画的缓动效果。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
//public Easing easing { get { return m_Easting; } set { m_Easting = value; } }
|
//public Easing easing { get { return m_Easting; } set { m_Easting = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The milliseconds duration of the fadeIn animation.
|
/// The milliseconds duration of the fadeIn animation.
|
||||||
/// 设定的渐入动画时长(毫秒)。如果要设置单个数据项的渐入时长,可以用代码定制:customFadeInDuration。
|
/// |设定的渐入动画时长(毫秒)。如果要设置单个数据项的渐入时长,可以用代码定制:customFadeInDuration。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float fadeInDuration { get { return m_FadeInDuration; } set { m_FadeInDuration = value < 0 ? 0 : value; } }
|
public float fadeInDuration { get { return m_FadeInDuration; } set { m_FadeInDuration = value < 0 ? 0 : value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The milliseconds duration of the fadeOut animation.
|
/// The milliseconds duration of the fadeOut animation.
|
||||||
/// 设定的渐出动画时长(毫秒)。如果要设置单个数据项的渐出时长,可以用代码定制:customFadeOutDuration。
|
/// |设定的渐出动画时长(毫秒)。如果要设置单个数据项的渐出时长,可以用代码定制:customFadeOutDuration。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float fadeOutDuration { get { return m_FadeOutDuration; } set { m_FadeOutDuration = value < 0 ? 0 : value; } }
|
public float fadeOutDuration { get { return m_FadeOutDuration; } set { m_FadeOutDuration = value < 0 ? 0 : value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The milliseconds actual duration of the first animation.
|
/// The milliseconds actual duration of the first animation.
|
||||||
/// 实际的动画时长(毫秒)。
|
/// |实际的动画时长(毫秒)。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float actualDuration { get { return m_ActualDuration; } }
|
public float actualDuration { get { return m_ActualDuration; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold.
|
/// Whether to set graphic number threshold to animation. Animation will be disabled when graphic number is larger than threshold.
|
||||||
/// 是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。
|
/// |是否开启动画的阈值,当单个系列显示的图形数量大于这个阈值时会关闭动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int threshold { get { return m_Threshold; } set { m_Threshold = value; } }
|
public int threshold { get { return m_Threshold; } set { m_Threshold = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The milliseconds delay before updating the first animation.
|
/// The milliseconds delay before updating the first animation.
|
||||||
/// 渐入动画延时(毫秒)。如果要设置单个数据项的延时,可以用代码定制:customFadeInDelay。
|
/// |渐入动画延时(毫秒)。如果要设置单个数据项的延时,可以用代码定制:customFadeInDelay。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float fadeInDelay { get { return m_FadeInDelay; } set { m_FadeInDelay = value < 0 ? 0 : value; } }
|
public float fadeInDelay { get { return m_FadeInDelay; } set { m_FadeInDelay = value < 0 ? 0 : value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -131,7 +131,7 @@ namespace XCharts.Runtime
|
|||||||
public bool dataChangeEnable { get { return m_DataChangeEnable; } set { m_DataChangeEnable = value; } }
|
public bool dataChangeEnable { get { return m_DataChangeEnable; } set { m_DataChangeEnable = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The milliseconds duration of the data change animation.
|
/// The milliseconds duration of the data change animation.
|
||||||
/// 数据变更的动画时长(毫秒)。
|
/// |数据变更的动画时长(毫秒)。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float dataChangeDuration { get { return m_DataChangeDuration; } set { m_DataChangeDuration = value < 0 ? 0 : value; } }
|
public float dataChangeDuration { get { return m_DataChangeDuration; } set { m_DataChangeDuration = value < 0 ? 0 : value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Angle axis of Polar Coordinate.
|
/// Angle axis of Polar Coordinate.
|
||||||
/// 极坐标系的角度轴。
|
/// |极坐标系的角度轴。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
[ComponentHandler(typeof(AngleAxisHandler), true)]
|
[ComponentHandler(typeof(AngleAxisHandler), true)]
|
||||||
@@ -16,7 +16,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Starting angle of axis. 0 degrees by default, standing for right position of center.
|
/// Starting angle of axis. 0 degrees by default, standing for right position of center.
|
||||||
/// 起始刻度的角度,默认为 0 度,即圆心的正右方。
|
/// |起始刻度的角度,默认为 0 度,即圆心的正右方。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float startAngle
|
public float startAngle
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,25 +7,25 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The axis in rectangular coordinate.
|
/// The axis in rectangular coordinate.
|
||||||
/// 直角坐标系的坐标轴组件。
|
/// |直角坐标系的坐标轴组件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class Axis : MainComponent
|
public class Axis : MainComponent
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of axis.
|
/// the type of axis.
|
||||||
/// 坐标轴类型。
|
/// |坐标轴类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum AxisType
|
public enum AxisType
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Numerical axis, suitable for continuous data.
|
/// Numerical axis, suitable for continuous data.
|
||||||
/// 数值轴。适用于连续数据。
|
/// |数值轴。适用于连续数据。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Value,
|
Value,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Category axis, suitable for discrete category data. Data should only be set via data for this type.
|
/// Category axis, suitable for discrete category data. Data should only be set via data for this type.
|
||||||
/// 类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。
|
/// |类目轴。适用于离散的类目数据,为该类型时必须通过 data 设置类目数据。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Category,
|
Category,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -42,7 +42,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of axis min and max value.
|
/// the type of axis min and max value.
|
||||||
/// 坐标轴最大最小刻度显示类型。
|
/// |坐标轴最大最小刻度显示类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum AxisMinMaxType
|
public enum AxisMinMaxType
|
||||||
{
|
{
|
||||||
@@ -64,7 +64,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the position of axis in grid.
|
/// the position of axis in grid.
|
||||||
/// 坐标轴在Grid中的位置
|
/// |坐标轴在Grid中的位置
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum AxisPosition
|
public enum AxisPosition
|
||||||
{
|
{
|
||||||
@@ -82,10 +82,10 @@ namespace XCharts.Runtime
|
|||||||
[SerializeField] protected int m_ParallelIndex;
|
[SerializeField] protected int m_ParallelIndex;
|
||||||
[SerializeField] protected AxisPosition m_Position;
|
[SerializeField] protected AxisPosition m_Position;
|
||||||
[SerializeField] protected float m_Offset;
|
[SerializeField] protected float m_Offset;
|
||||||
[SerializeField] protected float m_Min;
|
[SerializeField] protected double m_Min;
|
||||||
[SerializeField] protected float m_Max;
|
[SerializeField] protected double m_Max;
|
||||||
[SerializeField] protected int m_SplitNumber = 0;
|
[SerializeField] protected int m_SplitNumber = 0;
|
||||||
[SerializeField] protected float m_Interval = 0;
|
[SerializeField] protected double m_Interval = 0;
|
||||||
[SerializeField] protected bool m_BoundaryGap = true;
|
[SerializeField] protected bool m_BoundaryGap = true;
|
||||||
[SerializeField] protected int m_MaxCache = 0;
|
[SerializeField] protected int m_MaxCache = 0;
|
||||||
[SerializeField] protected float m_LogBase = 10;
|
[SerializeField] protected float m_LogBase = 10;
|
||||||
@@ -108,7 +108,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show axis.
|
/// Whether to show axis.
|
||||||
/// 是否显示坐标轴。
|
/// |是否显示坐标轴。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -117,7 +117,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of axis.
|
/// the type of axis.
|
||||||
/// 坐标轴类型。
|
/// |坐标轴类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisType type
|
public AxisType type
|
||||||
{
|
{
|
||||||
@@ -126,7 +126,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of axis minmax.
|
/// the type of axis minmax.
|
||||||
/// 坐标轴刻度最大最小值显示类型。
|
/// |坐标轴刻度最大最小值显示类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisMinMaxType minMaxType
|
public AxisMinMaxType minMaxType
|
||||||
{
|
{
|
||||||
@@ -135,7 +135,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The index of the grid on which the axis are located, by default, is in the first grid.
|
/// The index of the grid on which the axis are located, by default, is in the first grid.
|
||||||
/// 坐标轴所在的 grid 的索引,默认位于第一个 grid。
|
/// |坐标轴所在的 grid 的索引,默认位于第一个 grid。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int gridIndex
|
public int gridIndex
|
||||||
{
|
{
|
||||||
@@ -144,7 +144,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The index of the polar on which the axis are located, by default, is in the first polar.
|
/// The index of the polar on which the axis are located, by default, is in the first polar.
|
||||||
/// 坐标轴所在的 ploar 的索引,默认位于第一个 polar。
|
/// |坐标轴所在的 ploar 的索引,默认位于第一个 polar。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int polarIndex
|
public int polarIndex
|
||||||
{
|
{
|
||||||
@@ -153,7 +153,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The index of the parallel on which the axis are located, by default, is in the first parallel.
|
/// The index of the parallel on which the axis are located, by default, is in the first parallel.
|
||||||
/// 坐标轴所在的 parallel 的索引,默认位于第一个 parallel。
|
/// |坐标轴所在的 parallel 的索引,默认位于第一个 parallel。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int parallelIndex
|
public int parallelIndex
|
||||||
{
|
{
|
||||||
@@ -162,7 +162,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the position of axis in grid.
|
/// the position of axis in grid.
|
||||||
/// 坐标轴在Grid中的位置。
|
/// |坐标轴在Grid中的位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisPosition position
|
public AxisPosition position
|
||||||
{
|
{
|
||||||
@@ -171,7 +171,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the offset of axis from the default position. Useful when the same position has multiple axes.
|
/// the offset of axis from the default position. Useful when the same position has multiple axes.
|
||||||
/// 坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。
|
/// |坐标轴相对默认位置的偏移。在相同position有多个坐标轴时有用。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float offset
|
public float offset
|
||||||
{
|
{
|
||||||
@@ -180,25 +180,25 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The minimun value of axis.Valid when `minMaxType` is `Custom`
|
/// The minimun value of axis.Valid when `minMaxType` is `Custom`
|
||||||
/// 设定的坐标轴刻度最小值,当minMaxType为Custom时有效。
|
/// |设定的坐标轴刻度最小值,当minMaxType为Custom时有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float min
|
public double min
|
||||||
{
|
{
|
||||||
get { return m_Min; }
|
get { return m_Min; }
|
||||||
set { if (PropertyUtil.SetStruct(ref m_Min, value)) SetAllDirty(); }
|
set { if (PropertyUtil.SetStruct(ref m_Min, value)) SetAllDirty(); }
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The maximum value of axis.Valid when `minMaxType` is `Custom`
|
/// The maximum value of axis.Valid when `minMaxType` is `Custom`
|
||||||
/// 设定的坐标轴刻度最大值,当minMaxType为Custom时有效。
|
/// |设定的坐标轴刻度最大值,当minMaxType为Custom时有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float max
|
public double max
|
||||||
{
|
{
|
||||||
get { return m_Max; }
|
get { return m_Max; }
|
||||||
set { if (PropertyUtil.SetStruct(ref m_Max, value)) SetAllDirty(); }
|
set { if (PropertyUtil.SetStruct(ref m_Max, value)) SetAllDirty(); }
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Number of segments that the axis is split into.
|
/// Number of segments that the axis is split into.
|
||||||
/// 坐标轴的期望的分割段数。默认为0表示自动分割。
|
/// |坐标轴的期望的分割段数。默认为0表示自动分割。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int splitNumber
|
public int splitNumber
|
||||||
{
|
{
|
||||||
@@ -207,16 +207,16 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Compulsively set segmentation interval for axis.This is unavailable for category axis.
|
/// Compulsively set segmentation interval for axis.This is unavailable for category axis.
|
||||||
/// 强制设置坐标轴分割间隔。无法在类目轴中使用。
|
/// |强制设置坐标轴分割间隔。无法在类目轴中使用。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float interval
|
public double interval
|
||||||
{
|
{
|
||||||
get { return m_Interval; }
|
get { return m_Interval; }
|
||||||
set { if (PropertyUtil.SetStruct(ref m_Interval, value)) SetAllDirty(); }
|
set { if (PropertyUtil.SetStruct(ref m_Interval, value)) SetAllDirty(); }
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'.
|
/// The boundary gap on both sides of a coordinate axis, which is valid only for category axis with type: 'Category'.
|
||||||
/// 坐标轴两边是否留白。只对类目轴有效。
|
/// |坐标轴两边是否留白。只对类目轴有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool boundaryGap
|
public bool boundaryGap
|
||||||
{
|
{
|
||||||
@@ -225,7 +225,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Base of logarithm, which is valid only for numeric axes with type: 'Log'.
|
/// Base of logarithm, which is valid only for numeric axes with type: 'Log'.
|
||||||
/// 对数轴的底数,只在对数轴(type:'Log')中有效。
|
/// |对数轴的底数,只在对数轴(type:'Log')中有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float logBase
|
public float logBase
|
||||||
{
|
{
|
||||||
@@ -238,7 +238,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// On the log axis, if base e is the natural number, and is true, logBase fails.
|
/// On the log axis, if base e is the natural number, and is true, logBase fails.
|
||||||
/// 对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。
|
/// |对数轴是否以自然数 e 为底数,为 true 时 logBase 失效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool logBaseE
|
public bool logBaseE
|
||||||
{
|
{
|
||||||
@@ -247,8 +247,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The max number of axis data cache.
|
/// The max number of axis data cache.
|
||||||
/// The first data will be remove when the size of axis data is larger then maxCache.
|
/// |The first data will be remove when the size of axis data is larger then maxCache.
|
||||||
/// 可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。
|
/// |可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int maxCache
|
public int maxCache
|
||||||
{
|
{
|
||||||
@@ -257,7 +257,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated.
|
/// The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated.
|
||||||
/// 最大最小值向上取整的倍率。默认为0时自动计算。
|
/// |最大最小值向上取整的倍率。默认为0时自动计算。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int ceilRate
|
public int ceilRate
|
||||||
{
|
{
|
||||||
@@ -266,7 +266,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the axis are reversed or not. Invalid in `Category` axis.
|
/// Whether the axis are reversed or not. Invalid in `Category` axis.
|
||||||
/// 是否反向坐标轴。在类目轴中无效。
|
/// |是否反向坐标轴。在类目轴中无效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool inverse
|
public bool inverse
|
||||||
{
|
{
|
||||||
@@ -275,7 +275,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the positive position of axis is in clockwise. True for clockwise by default.
|
/// Whether the positive position of axis is in clockwise. True for clockwise by default.
|
||||||
/// 刻度增长是否按顺时针,默认顺时针。
|
/// |刻度增长是否按顺时针,默认顺时针。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool clockwise
|
public bool clockwise
|
||||||
{
|
{
|
||||||
@@ -284,7 +284,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Category data, available in type: 'Category' axis.
|
/// Category data, available in type: 'Category' axis.
|
||||||
/// 类目数据,在类目轴(type: 'category')中有效。
|
/// |类目数据,在类目轴(type: 'category')中有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<string> data
|
public List<string> data
|
||||||
{
|
{
|
||||||
@@ -301,7 +301,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// axis Line.
|
/// axis Line.
|
||||||
/// 坐标轴轴线。
|
/// |坐标轴轴线。
|
||||||
/// /// </summary>
|
/// /// </summary>
|
||||||
public AxisLine axisLine
|
public AxisLine axisLine
|
||||||
{
|
{
|
||||||
@@ -310,7 +310,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// axis name.
|
/// axis name.
|
||||||
/// 坐标轴名称。
|
/// |坐标轴名称。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisName axisName
|
public AxisName axisName
|
||||||
{
|
{
|
||||||
@@ -319,7 +319,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// axis tick.
|
/// axis tick.
|
||||||
/// 坐标轴刻度。
|
/// |坐标轴刻度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisTick axisTick
|
public AxisTick axisTick
|
||||||
{
|
{
|
||||||
@@ -328,7 +328,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// axis label.
|
/// axis label.
|
||||||
/// 坐标轴刻度标签。
|
/// |坐标轴刻度标签。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisLabel axisLabel
|
public AxisLabel axisLabel
|
||||||
{
|
{
|
||||||
@@ -337,7 +337,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// axis split line.
|
/// axis split line.
|
||||||
/// 坐标轴分割线。
|
/// |坐标轴分割线。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisSplitLine splitLine
|
public AxisSplitLine splitLine
|
||||||
{
|
{
|
||||||
@@ -346,7 +346,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// axis split area.
|
/// axis split area.
|
||||||
/// 坐标轴分割区域。
|
/// |坐标轴分割区域。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisSplitArea splitArea
|
public AxisSplitArea splitArea
|
||||||
{
|
{
|
||||||
@@ -355,7 +355,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to add new data at the head or at the end of the list.
|
/// Whether to add new data at the head or at the end of the list.
|
||||||
/// 添加新数据时是在列表的头部还是尾部加入。
|
/// |添加新数据时是在列表的头部还是尾部加入。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool insertDataToHead
|
public bool insertDataToHead
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,17 +19,17 @@ namespace XCharts.Runtime
|
|||||||
public float top { get; internal set; }
|
public float top { get; internal set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the current minimun value.
|
/// the current minimun value.
|
||||||
/// 当前最小值。
|
/// |当前最小值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double minValue { get; internal set; }
|
public double minValue { get; internal set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the current maximum value.
|
/// the current maximum value.
|
||||||
/// 当前最大值。
|
/// |当前最大值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double maxValue { get; internal set; }
|
public double maxValue { get; internal set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the offset of zero position.
|
/// the offset of zero position.
|
||||||
/// 坐标轴原点在坐标轴的偏移。
|
/// |坐标轴原点在坐标轴的偏移。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float offset { get; internal set; }
|
public float offset { get; internal set; }
|
||||||
public double minMaxRange { get; internal set; }
|
public double minMaxRange { get; internal set; }
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Settings related to axis label.
|
/// Settings related to axis label.
|
||||||
/// 坐标轴刻度标签的相关设置。
|
/// |坐标轴刻度标签的相关设置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class AxisLabel : ChildComponent
|
public class AxisLabel : ChildComponent
|
||||||
@@ -30,7 +30,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set this to false to prevent the axis label from appearing.
|
/// Set this to false to prevent the axis label from appearing.
|
||||||
/// 是否显示刻度标签。
|
/// |是否显示刻度标签。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -39,7 +39,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The display interval of the axis label.
|
/// The display interval of the axis label.
|
||||||
/// 坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
|
/// |坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int interval
|
public int interval
|
||||||
{
|
{
|
||||||
@@ -48,7 +48,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set this to true so the axis labels face the inside direction.
|
/// Set this to true so the axis labels face the inside direction.
|
||||||
/// 刻度标签是否朝内,默认朝外。
|
/// |刻度标签是否朝内,默认朝外。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool inside
|
public bool inside
|
||||||
{
|
{
|
||||||
@@ -57,7 +57,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The distance between the axis label and the axis line.
|
/// The distance between the axis label and the axis line.
|
||||||
/// 刻度标签与轴线之间的距离。
|
/// |刻度标签与轴线之间的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float distance
|
public float distance
|
||||||
{
|
{
|
||||||
@@ -76,7 +76,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Standard numeric format strings.
|
/// Standard numeric format strings.
|
||||||
/// 标准数字格式字符串。用于将数值格式化显示为字符串。
|
/// |标准数字格式字符串。用于将数值格式化显示为字符串。
|
||||||
/// 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从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
|
/// 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -89,7 +89,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Show negative number as positive number.
|
/// Show negative number as positive number.
|
||||||
/// 将负数数值显示为正数。一般和`Serie`的`showAsPositiveNumber`配合使用。
|
/// |将负数数值显示为正数。一般和`Serie`的`showAsPositiveNumber`配合使用。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool showAsPositiveNumber
|
public bool showAsPositiveNumber
|
||||||
{
|
{
|
||||||
@@ -123,7 +123,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to display the first label.
|
/// Whether to display the first label.
|
||||||
/// 是否显示第一个文本。
|
/// |是否显示第一个文本。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool showStartLabel
|
public bool showStartLabel
|
||||||
{
|
{
|
||||||
@@ -132,7 +132,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to display the last label.
|
/// Whether to display the last label.
|
||||||
/// 是否显示最后一个文本。
|
/// |是否显示最后一个文本。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool showEndLabel
|
public bool showEndLabel
|
||||||
{
|
{
|
||||||
@@ -150,7 +150,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The text style of axis name.
|
/// The text style of axis name.
|
||||||
/// 文本样式。
|
/// |文本样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TextStyle textStyle
|
public TextStyle textStyle
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Settings related to axis line.
|
/// Settings related to axis line.
|
||||||
/// 坐标轴轴线。
|
/// |坐标轴轴线。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class AxisLine : BaseLine
|
public class AxisLine : BaseLine
|
||||||
@@ -16,7 +16,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// When mutiple axes exists, this option can be used to specify which axis can be "onZero" to.
|
/// 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>
|
/// </summary>
|
||||||
public bool onZero
|
public bool onZero
|
||||||
{
|
{
|
||||||
@@ -25,7 +25,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show the arrow symbol of axis.
|
/// Whether to show the arrow symbol of axis.
|
||||||
/// 是否显示箭头。
|
/// |是否显示箭头。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool showArrow
|
public bool showArrow
|
||||||
{
|
{
|
||||||
@@ -34,7 +34,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the arrow of line.
|
/// the arrow of line.
|
||||||
/// 轴线箭头。
|
/// |轴线箭头。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ArrowStyle arrow
|
public ArrowStyle arrow
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the name of axis.
|
/// the name of axis.
|
||||||
/// 坐标轴名称。
|
/// |坐标轴名称。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class AxisName : ChildComponent
|
public class AxisName : ChildComponent
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the location of axis name.
|
/// the location of axis name.
|
||||||
/// 坐标轴名称显示位置。
|
/// |坐标轴名称显示位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum Location
|
public enum Location
|
||||||
{
|
{
|
||||||
@@ -29,7 +29,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show axis name.
|
/// Whether to show axis name.
|
||||||
/// 是否显示坐标名称。
|
/// |是否显示坐标名称。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -38,7 +38,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the name of axis.
|
/// the name of axis.
|
||||||
/// 坐标轴名称。
|
/// |坐标轴名称。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string name
|
public string name
|
||||||
{
|
{
|
||||||
@@ -47,7 +47,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The formatter of indicator's name.
|
/// The formatter of indicator's name.
|
||||||
/// 指示器名称显示的格式器。可用在雷达图。
|
/// |指示器名称显示的格式器。可用在雷达图。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string formatter
|
public string formatter
|
||||||
{
|
{
|
||||||
@@ -56,7 +56,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Location of axis name.
|
/// Location of axis name.
|
||||||
/// 坐标轴名称显示位置。
|
/// |坐标轴名称显示位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Location location
|
public Location location
|
||||||
{
|
{
|
||||||
@@ -66,7 +66,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The text style of axis name.
|
/// The text style of axis name.
|
||||||
/// 文本样式。
|
/// |文本样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TextStyle textStyle
|
public TextStyle textStyle
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Split area of axis in grid area, not shown by default.
|
/// Split area of axis in grid area, not shown by default.
|
||||||
/// 坐标轴在 grid 区域中的分隔区域,默认不显示。
|
/// |坐标轴在 grid 区域中的分隔区域,默认不显示。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class AxisSplitArea : ChildComponent
|
public class AxisSplitArea : ChildComponent
|
||||||
@@ -17,7 +17,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set this to true to show the splitArea.
|
/// Set this to true to show the splitArea.
|
||||||
/// 是否显示分隔区域。
|
/// |是否显示分隔区域。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -27,8 +27,8 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Color of split area. SplitArea color could also be set in color array,
|
/// Color of split area. SplitArea color could also be set in color array,
|
||||||
/// which the split lines would take as their colors in turns.
|
/// which the split lines would take as their colors in turns.
|
||||||
/// Dark and light colors in turns are used by default.
|
/// |Dark and light colors in turns are used by default.
|
||||||
/// 分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。
|
/// |分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<Color32> color
|
public List<Color32> color
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Split line of axis in grid area.
|
/// Split line of axis in grid area.
|
||||||
/// 坐标轴在 grid 区域中的分隔线。
|
/// |坐标轴在 grid 区域中的分隔线。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class AxisSplitLine : BaseLine
|
public class AxisSplitLine : BaseLine
|
||||||
@@ -17,7 +17,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The distance between the split line and axis line.
|
/// The distance between the split line and axis line.
|
||||||
/// 刻度线与轴线的距离。
|
/// |刻度线与轴线的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float distance { get { return m_Distance; } set { m_Distance = value; } }
|
public float distance { get { return m_Distance; } set { m_Distance = value; } }
|
||||||
public bool autoColor { get { return m_AutoColor; } set { m_AutoColor = value; } }
|
public bool autoColor { get { return m_AutoColor; } set { m_AutoColor = value; } }
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Settings related to axis tick.
|
/// Settings related to axis tick.
|
||||||
/// 坐标轴刻度相关设置。
|
/// |坐标轴刻度相关设置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class AxisTick : BaseLine
|
public class AxisTick : BaseLine
|
||||||
@@ -21,13 +21,13 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The distance between the tick line and axis line.
|
/// The distance between the tick line and axis line.
|
||||||
/// 刻度线与轴线的距离。
|
/// |刻度线与轴线的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float distance { get { return m_Distance; } set { m_Distance = value; } }
|
public float distance { get { return m_Distance; } set { m_Distance = value; } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Align axis tick with label, which is available only when boundaryGap is set to be true in category axis.
|
/// Align axis tick with label, which is available only when boundaryGap is set to be true in category axis.
|
||||||
/// 类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。
|
/// |类目轴中在 boundaryGap 为 true 的时候有效,可以保证刻度线和标签对齐。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool alignWithLabel
|
public bool alignWithLabel
|
||||||
{
|
{
|
||||||
@@ -36,7 +36,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set this to true so the axis labels face the inside direction.
|
/// Set this to true so the axis labels face the inside direction.
|
||||||
/// 坐标轴刻度是否朝内,默认朝外。
|
/// |坐标轴刻度是否朝内,默认朝外。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool inside
|
public bool inside
|
||||||
{
|
{
|
||||||
@@ -45,7 +45,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to display the first tick.
|
/// Whether to display the first tick.
|
||||||
/// 是否显示第一个刻度。
|
/// |是否显示第一个刻度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool showStartTick
|
public bool showStartTick
|
||||||
{
|
{
|
||||||
@@ -54,7 +54,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to display the last tick.
|
/// Whether to display the last tick.
|
||||||
/// 是否显示最后一个刻度。
|
/// |是否显示最后一个刻度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool showEndTick
|
public bool showEndTick
|
||||||
{
|
{
|
||||||
@@ -63,7 +63,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Number of segments that the axis is split into.
|
/// Number of segments that the axis is split into.
|
||||||
/// 分隔线之间分割的刻度数。
|
/// |分隔线之间分割的刻度数。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int splitNumber
|
public int splitNumber
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Radial axis of polar coordinate.
|
/// Radial axis of polar coordinate.
|
||||||
/// 极坐标系的径向轴。
|
/// |极坐标系的径向轴。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
[ComponentHandler(typeof(RadiusAxisHandler), true)]
|
[ComponentHandler(typeof(RadiusAxisHandler), true)]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Single axis.
|
/// Single axis.
|
||||||
/// 单轴。
|
/// |单轴。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
[ComponentHandler(typeof(SingleAxisHander), true)]
|
[ComponentHandler(typeof(SingleAxisHander), true)]
|
||||||
@@ -22,7 +22,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Orientation of the axis. By default, it's 'Horizontal'. You can set it to be 'Vertical' to make a vertical axis.
|
/// Orientation of the axis. By default, it's 'Horizontal'. You can set it to be 'Vertical' to make a vertical axis.
|
||||||
/// 坐标轴朝向。默认为水平朝向。
|
/// |坐标轴朝向。默认为水平朝向。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Orient orient
|
public Orient orient
|
||||||
{
|
{
|
||||||
@@ -31,7 +31,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the left side of the container.
|
/// Distance between component and the left side of the container.
|
||||||
/// 组件离容器左侧的距离。
|
/// |组件离容器左侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float left
|
public float left
|
||||||
{
|
{
|
||||||
@@ -40,7 +40,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the right side of the container.
|
/// Distance between component and the right side of the container.
|
||||||
/// 组件离容器右侧的距离。
|
/// |组件离容器右侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float right
|
public float right
|
||||||
{
|
{
|
||||||
@@ -49,7 +49,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the top side of the container.
|
/// Distance between component and the top side of the container.
|
||||||
/// 组件离容器上侧的距离。
|
/// |组件离容器上侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float top
|
public float top
|
||||||
{
|
{
|
||||||
@@ -58,7 +58,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the bottom side of the container.
|
/// Distance between component and the bottom side of the container.
|
||||||
/// 组件离容器下侧的距离。
|
/// |组件离容器下侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float bottom
|
public float bottom
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The x axis in cartesian(rectangular) coordinate.
|
/// The x axis in cartesian(rectangular) coordinate.
|
||||||
/// <para>直角坐标系 grid 中的 x 轴。</para>
|
/// |直角坐标系 grid 中的 x 轴。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
[RequireChartComponent(typeof(GridCoord))]
|
[RequireChartComponent(typeof(GridCoord))]
|
||||||
|
|||||||
@@ -5,9 +5,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The x axis in cartesian(rectangular) coordinate.
|
/// The x axis in cartesian(rectangular) coordinate.
|
||||||
/// <para>
|
/// |直角坐标系 grid 中的 y 轴。
|
||||||
/// 直角坐标系 grid 中的 y 轴。
|
|
||||||
/// </para>
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
[RequireChartComponent(typeof(GridCoord), typeof(XAxis))]
|
[RequireChartComponent(typeof(GridCoord), typeof(XAxis))]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Background component.
|
/// Background component.
|
||||||
///
|
/// |
|
||||||
/// 背景组件。
|
/// 背景组件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
@@ -23,7 +23,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to enable the background component.
|
/// Whether to enable the background component.
|
||||||
/// 是否启用背景组件。
|
/// |是否启用背景组件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -32,7 +32,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the image of background.
|
/// the image of background.
|
||||||
/// 背景图。
|
/// |背景图。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Sprite image
|
public Sprite image
|
||||||
{
|
{
|
||||||
@@ -42,7 +42,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the fill type of background image.
|
/// the fill type of background image.
|
||||||
/// 背景图填充类型。
|
/// |背景图填充类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Image.Type imageType
|
public Image.Type imageType
|
||||||
{
|
{
|
||||||
@@ -61,7 +61,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to hide the background color set in the theme when the background component is on.
|
/// Whether to hide the background color set in the theme when the background component is on.
|
||||||
/// 当background组件开启时,是否隐藏主题中设置的背景色。
|
/// |当background组件开启时,是否隐藏主题中设置的背景色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool hideThemeBackgroundColor
|
public bool hideThemeBackgroundColor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The style of area.
|
/// The style of area.
|
||||||
/// 区域填充样式。
|
/// |区域填充样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class AreaStyle : ChildComponent, ISerieExtraComponent, ISerieDataComponent
|
public class AreaStyle : ChildComponent, ISerieExtraComponent, ISerieDataComponent
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Origin position of area.
|
/// Origin position of area.
|
||||||
/// 图形区域的起始位置。默认情况下,图形会从坐标轴轴线到数据间进行填充。如果需要填充的区域是坐标轴最大值到数据间,或者坐标轴最小值到数据间,则可以通过这个配置项进行设置。
|
/// |图形区域的起始位置。默认情况下,图形会从坐标轴轴线到数据间进行填充。如果需要填充的区域是坐标轴最大值到数据间,或者坐标轴最小值到数据间,则可以通过这个配置项进行设置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum AreaOrigin
|
public enum AreaOrigin
|
||||||
{
|
{
|
||||||
@@ -43,7 +43,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set this to false to prevent the areafrom showing.
|
/// Set this to false to prevent the areafrom showing.
|
||||||
/// 是否显示区域填充。
|
/// |是否显示区域填充。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the origin of area.
|
/// the origin of area.
|
||||||
/// 区域填充的起始位置。
|
/// |区域填充的起始位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AreaOrigin origin
|
public AreaOrigin origin
|
||||||
{
|
{
|
||||||
@@ -61,7 +61,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of area,default use serie color.
|
/// the color of area,default use serie color.
|
||||||
/// 区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。
|
/// |区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 color
|
public Color32 color
|
||||||
{
|
{
|
||||||
@@ -70,7 +70,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gradient color, start color to toColor.
|
/// Gradient color, start color to toColor.
|
||||||
/// 渐变色的终点颜色。
|
/// |渐变色的终点颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 toColor
|
public Color32 toColor
|
||||||
{
|
{
|
||||||
@@ -79,7 +79,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0.
|
/// 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>
|
/// </summary>
|
||||||
public float opacity
|
public float opacity
|
||||||
{
|
{
|
||||||
@@ -88,7 +88,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of area,default use serie color.
|
/// the color of area,default use serie color.
|
||||||
/// 高亮时区域填充的颜色,如果highlightToColor不是默认值,则表示渐变色的起点颜色。
|
/// |高亮时区域填充的颜色,如果highlightToColor不是默认值,则表示渐变色的起点颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 highlightColor
|
public Color32 highlightColor
|
||||||
{
|
{
|
||||||
@@ -97,7 +97,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gradient color, start highlightColor to highlightToColor.
|
/// Gradient color, start highlightColor to highlightToColor.
|
||||||
/// 高亮时渐变色的终点颜色。
|
/// |高亮时渐变色的终点颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 highlightToColor
|
public Color32 highlightToColor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The widht of arrow.
|
/// The widht of arrow.
|
||||||
/// 箭头宽。
|
/// |箭头宽。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float width
|
public float width
|
||||||
{
|
{
|
||||||
@@ -26,7 +26,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The height of arrow.
|
/// The height of arrow.
|
||||||
/// 箭头高。
|
/// |箭头高。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float height
|
public float height
|
||||||
{
|
{
|
||||||
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The offset of arrow.
|
/// The offset of arrow.
|
||||||
/// 箭头偏移。
|
/// |箭头偏移。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float offset
|
public float offset
|
||||||
{
|
{
|
||||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The dent of arrow.
|
/// The dent of arrow.
|
||||||
/// 箭头的凹度。
|
/// |箭头的凹度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float dent
|
public float dent
|
||||||
{
|
{
|
||||||
@@ -54,7 +54,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of arrow.
|
/// the color of arrow.
|
||||||
/// 箭头颜色。
|
/// |箭头颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 color
|
public Color32 color
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Settings related to base line.
|
/// Settings related to base line.
|
||||||
/// 线条基础配置。
|
/// |线条基础配置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class BaseLine : ChildComponent
|
public class BaseLine : ChildComponent
|
||||||
@@ -15,7 +15,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set this to false to prevent the axis line from showing.
|
/// Set this to false to prevent the axis line from showing.
|
||||||
/// 是否显示坐标轴轴线。
|
/// |是否显示坐标轴轴线。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the data icon is show.
|
/// Whether the data icon is show.
|
||||||
/// 是否显示图标。
|
/// |是否显示图标。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show { get { return m_Show; } set { m_Show = value; } }
|
public bool show { get { return m_Show; } set { m_Show = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
|||||||
public Layer layer { get { return m_Layer; } set { m_Layer = value; } }
|
public Layer layer { get { return m_Layer; } set { m_Layer = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The image of icon.
|
/// The image of icon.
|
||||||
/// 图标的图片。
|
/// |图标的图片。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Sprite sprite { get { return m_Sprite; } set { m_Sprite = value; } }
|
public Sprite sprite { get { return m_Sprite; } set { m_Sprite = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gradient color1.
|
/// Gradient color1.
|
||||||
/// 渐变色的颜色1。
|
/// |渐变色的颜色1。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 toColor
|
public Color32 toColor
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gradient color2.Only valid in line diagrams.
|
/// Gradient color2.Only valid in line diagrams.
|
||||||
/// 渐变色的颜色2。只在折线图中有效。
|
/// |渐变色的颜色2。只在折线图中有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 toColor2
|
public Color32 toColor2
|
||||||
{
|
{
|
||||||
@@ -189,7 +189,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Standard numeric format strings.
|
/// Standard numeric format strings.
|
||||||
/// 标准数字格式字符串。用于将数值格式化显示为字符串。
|
/// |标准数字格式字符串。用于将数值格式化显示为字符串。
|
||||||
/// 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从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
|
/// 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -201,7 +201,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <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)).
|
/// 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>
|
/// </summary>
|
||||||
public float[] cornerRadius
|
public float[] cornerRadius
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the label line is showed.
|
/// Whether the label line is showed.
|
||||||
/// 是否显示视觉引导线。
|
/// |是否显示视觉引导线。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -56,7 +56,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of visual guide line.
|
/// the type of visual guide line.
|
||||||
/// 视觉引导线类型。
|
/// |视觉引导线类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LineType lineType
|
public LineType lineType
|
||||||
{
|
{
|
||||||
@@ -65,7 +65,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of visual guild line.
|
/// the color of visual guild line.
|
||||||
/// 视觉引导线颜色。默认和serie一致取自调色板。
|
/// |视觉引导线颜色。默认和serie一致取自调色板。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 lineColor
|
public Color32 lineColor
|
||||||
{
|
{
|
||||||
@@ -74,7 +74,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of visual guild line.
|
/// the width of visual guild line.
|
||||||
/// 视觉引导线的宽度。
|
/// |视觉引导线的宽度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float lineWidth
|
public float lineWidth
|
||||||
{
|
{
|
||||||
@@ -83,7 +83,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the gap of container and guild line.
|
/// the gap of container and guild line.
|
||||||
/// 视觉引导线和容器的间距。
|
/// |视觉引导线和容器的间距。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float lineGap
|
public float lineGap
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The length of the first segment of visual guide line.
|
/// The length of the first segment of visual guide line.
|
||||||
/// 视觉引导线第一段的长度。
|
/// |视觉引导线第一段的长度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float lineLength1
|
public float lineLength1
|
||||||
{
|
{
|
||||||
@@ -101,7 +101,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The length of the second segment of visual guide line.
|
/// The length of the second segment of visual guide line.
|
||||||
/// 视觉引导线第二段的长度。
|
/// |视觉引导线第二段的长度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float lineLength2
|
public float lineLength2
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Text label of chart, to explain some data information about graphic item like value, name and so on.
|
/// Text label of chart, to explain some data information about graphic item like value, name and so on.
|
||||||
/// 图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
|
/// |图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class LabelStyle : ChildComponent, ISerieExtraComponent, ISerieDataComponent
|
public class LabelStyle : ChildComponent, ISerieExtraComponent, ISerieDataComponent
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The position of label.
|
/// The position of label.
|
||||||
/// 标签的位置。
|
/// |标签的位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum Position
|
public enum Position
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the label is showed.
|
/// Whether the label is showed.
|
||||||
/// 是否显示文本标签。
|
/// |是否显示文本标签。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -111,7 +111,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The position of label.
|
/// The position of label.
|
||||||
/// 标签的位置。
|
/// |标签的位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Position position
|
public Position position
|
||||||
{
|
{
|
||||||
@@ -138,7 +138,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// offset to the host graphic element.
|
/// offset to the host graphic element.
|
||||||
/// 距离图形元素的偏移
|
/// |距离图形元素的偏移
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector3 offset
|
public Vector3 offset
|
||||||
{
|
{
|
||||||
@@ -155,7 +155,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of background. If set as default value 0, it means than the background width auto set as the text width.
|
/// the width of background. If set as default value 0, it means than the background width auto set as the text width.
|
||||||
/// 标签的背景宽度。一般不用指定,不指定时则自动是文字的宽度。
|
/// |标签的背景宽度。一般不用指定,不指定时则自动是文字的宽度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public float backgroundWidth
|
public float backgroundWidth
|
||||||
@@ -165,7 +165,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the height of background. If set as default value 0, it means than the background height auto set as the text height.
|
/// the height of background. If set as default value 0, it means than the background height auto set as the text height.
|
||||||
/// 标签的背景高度。一般不用指定,不指定时则自动是文字的高度。
|
/// |标签的背景高度。一般不用指定,不指定时则自动是文字的高度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public float backgroundHeight
|
public float backgroundHeight
|
||||||
@@ -175,7 +175,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the text padding of left and right. defaut:2.
|
/// the text padding of left and right. defaut:2.
|
||||||
/// 左右边距。
|
/// |左右边距。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float paddingLeftRight
|
public float paddingLeftRight
|
||||||
{
|
{
|
||||||
@@ -184,7 +184,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the text padding of top and bottom. defaut:2.
|
/// the text padding of top and bottom. defaut:2.
|
||||||
/// 上下边距。
|
/// |上下边距。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float paddingTopBottom
|
public float paddingTopBottom
|
||||||
{
|
{
|
||||||
@@ -193,7 +193,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Standard numeric format strings.
|
/// Standard numeric format strings.
|
||||||
/// 标准数字格式字符串。用于将数值格式化显示为字符串。
|
/// |标准数字格式字符串。用于将数值格式化显示为字符串。
|
||||||
/// 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从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
|
/// 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -222,7 +222,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the sytle of text.
|
/// the sytle of text.
|
||||||
/// 文本样式。
|
/// |文本样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TextStyle textStyle
|
public TextStyle textStyle
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show the arrow.
|
/// Whether to show the arrow.
|
||||||
/// 是否显示箭头。
|
/// |是否显示箭头。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -42,7 +42,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The position of arrow.
|
/// The position of arrow.
|
||||||
/// 箭头位置。
|
/// |箭头位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Position position
|
public Position position
|
||||||
{
|
{
|
||||||
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the arrow of line.
|
/// the arrow of line.
|
||||||
/// 箭头。
|
/// |箭头。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ArrowStyle arrow
|
public ArrowStyle arrow
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The style of line.
|
/// The style of line.
|
||||||
/// 线条样式。
|
/// |线条样式。
|
||||||
/// 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。
|
/// 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。
|
||||||
/// toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。
|
/// toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -51,7 +51,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether show line.
|
/// Whether show line.
|
||||||
/// 是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。
|
/// |是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -60,7 +60,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of line.
|
/// the type of line.
|
||||||
/// 线的类型。
|
/// |线的类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Type type
|
public Type type
|
||||||
{
|
{
|
||||||
@@ -69,7 +69,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of line, default use serie color.
|
/// the color of line, default use serie color.
|
||||||
/// 线的颜色。
|
/// |线的颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 color
|
public Color32 color
|
||||||
{
|
{
|
||||||
@@ -78,7 +78,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the middle color of line, default use serie color.
|
/// the middle color of line, default use serie color.
|
||||||
/// 线的渐变颜色(需要水平方向渐变时)。
|
/// |线的渐变颜色(需要水平方向渐变时)。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 toColor
|
public Color32 toColor
|
||||||
{
|
{
|
||||||
@@ -87,7 +87,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the end color of line, default use serie color.
|
/// the end color of line, default use serie color.
|
||||||
/// 线的渐变颜色2(需要水平方向三个渐变色的渐变时)。
|
/// |线的渐变颜色2(需要水平方向三个渐变色的渐变时)。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 toColor2
|
public Color32 toColor2
|
||||||
{
|
{
|
||||||
@@ -96,7 +96,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of line.
|
/// the width of line.
|
||||||
/// 线宽。
|
/// |线宽。
|
||||||
/// /// </summary>
|
/// /// </summary>
|
||||||
public float width
|
public float width
|
||||||
{
|
{
|
||||||
@@ -105,7 +105,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the length of line.
|
/// the length of line.
|
||||||
/// 线长。
|
/// |线长。
|
||||||
/// /// </summary>
|
/// /// </summary>
|
||||||
public float length
|
public float length
|
||||||
{
|
{
|
||||||
@@ -114,7 +114,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0.
|
/// 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>
|
/// </summary>
|
||||||
public float opacity
|
public float opacity
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Location type. Quick to set the general location.
|
/// Location type. Quick to set the general location.
|
||||||
/// 位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置。
|
/// |位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class Location : ChildComponent, IPropertyChanged
|
public class Location : ChildComponent, IPropertyChanged
|
||||||
@@ -54,7 +54,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the left side of the container.
|
/// Distance between component and the left side of the container.
|
||||||
/// 离容器左侧的距离。
|
/// |离容器左侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float left
|
public float left
|
||||||
{
|
{
|
||||||
@@ -63,7 +63,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the left side of the container.
|
/// Distance between component and the left side of the container.
|
||||||
/// 离容器右侧的距离。
|
/// |离容器右侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float right
|
public float right
|
||||||
{
|
{
|
||||||
@@ -72,7 +72,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the left side of the container.
|
/// Distance between component and the left side of the container.
|
||||||
/// 离容器上侧的距离。
|
/// |离容器上侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float top
|
public float top
|
||||||
{
|
{
|
||||||
@@ -81,7 +81,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the left side of the container.
|
/// Distance between component and the left side of the container.
|
||||||
/// 离容器下侧的距离。
|
/// |离容器下侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float bottom
|
public float bottom
|
||||||
{
|
{
|
||||||
@@ -91,7 +91,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the anchor of text.
|
/// the anchor of text.
|
||||||
/// Location对应的Anchor锚点
|
/// |Location对应的Anchor锚点
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public TextAnchor runtimeTextAlignment { get { return m_TextAlignment; } }
|
public TextAnchor runtimeTextAlignment { get { return m_TextAlignment; } }
|
||||||
@@ -101,17 +101,17 @@ namespace XCharts.Runtime
|
|||||||
#endif
|
#endif
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the minimum achor.
|
/// the minimum achor.
|
||||||
/// Location对应的anchorMin。
|
/// |Location对应的anchorMin。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector2 runtimeAnchorMin { get { return m_AnchorMin; } }
|
public Vector2 runtimeAnchorMin { get { return m_AnchorMin; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the maximun achor.
|
/// the maximun achor.
|
||||||
/// Location对应的anchorMax.
|
/// |Location对应的anchorMax.
|
||||||
/// </summary>
|
/// |</summary>
|
||||||
public Vector2 runtimeAnchorMax { get { return m_AnchorMax; } }
|
public Vector2 runtimeAnchorMax { get { return m_AnchorMax; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the povot.
|
/// the povot.
|
||||||
/// Loation对应的中心点。
|
/// |Loation对应的中心点。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector2 runtimePivot { get { return m_Pivot; } }
|
public Vector2 runtimePivot { get { return m_Pivot; } }
|
||||||
public float runtimeLeft { get; private set; }
|
public float runtimeLeft { get; private set; }
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using UnityEngine;
|
|||||||
namespace XCharts.Runtime
|
namespace XCharts.Runtime
|
||||||
{
|
{
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class StageColor
|
public class StageColor : ChildComponent
|
||||||
{
|
{
|
||||||
[SerializeField] private float m_Percent;
|
[SerializeField] private float m_Percent;
|
||||||
[SerializeField] private Color32 m_Color;
|
[SerializeField] private Color32 m_Color;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of symbol.
|
/// the type of symbol.
|
||||||
/// 标记图形的类型。
|
/// |标记图形的类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum SymbolType
|
public enum SymbolType
|
||||||
{
|
{
|
||||||
@@ -63,23 +63,23 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The way to get serie symbol size.
|
/// The way to get serie symbol size.
|
||||||
/// 获取标记图形大小的方式。
|
/// |获取标记图形大小的方式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum SymbolSizeType
|
public enum SymbolSizeType
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify constant for symbol size.
|
/// Specify constant for symbol size.
|
||||||
/// 自定义大小。
|
/// |自定义大小。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Custom,
|
Custom,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify the dataIndex and dataScale to calculate symbol size.
|
/// Specify the dataIndex and dataScale to calculate symbol size.
|
||||||
/// 通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
|
/// |通过 dataIndex 从数据中获取,再乘以一个比例系数 dataScale 。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FromData,
|
FromData,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify function for symbol size.
|
/// Specify function for symbol size.
|
||||||
/// 通过委托函数获取。
|
/// |通过委托函数获取。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Function,
|
Function,
|
||||||
}
|
}
|
||||||
@@ -137,7 +137,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the symbol is showed.
|
/// Whether the symbol is showed.
|
||||||
/// 是否显示标记。
|
/// |是否显示标记。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -146,7 +146,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of symbol.
|
/// the type of symbol.
|
||||||
/// 标记类型。
|
/// |标记类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SymbolType type
|
public SymbolType type
|
||||||
{
|
{
|
||||||
@@ -155,7 +155,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of symbol size.
|
/// the type of symbol size.
|
||||||
/// 标记图形的大小获取方式。
|
/// |标记图形的大小获取方式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SymbolSizeType sizeType
|
public SymbolSizeType sizeType
|
||||||
{
|
{
|
||||||
@@ -164,7 +164,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the size of symbol.
|
/// the size of symbol.
|
||||||
/// 标记的大小。
|
/// |标记的大小。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float size
|
public float size
|
||||||
{
|
{
|
||||||
@@ -173,7 +173,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the size of selected symbol.
|
/// the size of selected symbol.
|
||||||
/// 被选中的标记的大小。
|
/// |被选中的标记的大小。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float selectedSize
|
public float selectedSize
|
||||||
{
|
{
|
||||||
@@ -182,7 +182,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// whitch data index is when the sizeType assined as FromData.
|
/// whitch data index is when the sizeType assined as FromData.
|
||||||
/// 当sizeType指定为FromData时,指定的数据源索引。
|
/// |当sizeType指定为FromData时,指定的数据源索引。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int dataIndex
|
public int dataIndex
|
||||||
{
|
{
|
||||||
@@ -191,7 +191,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the scale of data when sizeType assined as FromData.
|
/// the scale of data when sizeType assined as FromData.
|
||||||
/// 当sizeType指定为FromData时,指定的倍数系数。
|
/// |当sizeType指定为FromData时,指定的倍数系数。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float dataScale
|
public float dataScale
|
||||||
{
|
{
|
||||||
@@ -200,7 +200,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the scale of selected data when sizeType assined as FromData.
|
/// the scale of selected data when sizeType assined as FromData.
|
||||||
/// 当sizeType指定为FromData时,指定的高亮倍数系数。
|
/// |当sizeType指定为FromData时,指定的高亮倍数系数。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float selectedDataScale
|
public float selectedDataScale
|
||||||
{
|
{
|
||||||
@@ -209,7 +209,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the function of size when sizeType assined as Function.
|
/// the function of size when sizeType assined as Function.
|
||||||
/// 当sizeType指定为Function时,指定的委托函数。
|
/// |当sizeType指定为Function时,指定的委托函数。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SymbolSizeFunction sizeFunction
|
public SymbolSizeFunction sizeFunction
|
||||||
{
|
{
|
||||||
@@ -218,7 +218,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the function of size when sizeType assined as Function.
|
/// the function of size when sizeType assined as Function.
|
||||||
/// 当sizeType指定为Function时,指定的高亮委托函数。
|
/// |当sizeType指定为Function时,指定的高亮委托函数。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SymbolSizeFunction selectedSizeFunction
|
public SymbolSizeFunction selectedSizeFunction
|
||||||
{
|
{
|
||||||
@@ -227,7 +227,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the index start to show symbol.
|
/// the index start to show symbol.
|
||||||
/// 开始显示图形标记的索引。
|
/// |开始显示图形标记的索引。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int startIndex
|
public int startIndex
|
||||||
{
|
{
|
||||||
@@ -236,7 +236,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the interval of show symbol.
|
/// the interval of show symbol.
|
||||||
/// 显示图形标记的间隔。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
|
/// |显示图形标记的间隔。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int interval
|
public int interval
|
||||||
{
|
{
|
||||||
@@ -245,7 +245,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// whether to show the last symbol.
|
/// whether to show the last symbol.
|
||||||
/// 是否强制显示最后一个图形标记。
|
/// |是否强制显示最后一个图形标记。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool forceShowLast
|
public bool forceShowLast
|
||||||
{
|
{
|
||||||
@@ -254,7 +254,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the gap of symbol and line segment.
|
/// the gap of symbol and line segment.
|
||||||
/// 图形标记和线条的间隙距离。
|
/// |图形标记和线条的间隙距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float gap
|
public float gap
|
||||||
{
|
{
|
||||||
@@ -310,7 +310,7 @@ namespace XCharts.Runtime
|
|||||||
private List<float> m_AnimationSize = new List<float>() { 0, 5, 10 };
|
private List<float> m_AnimationSize = new List<float>() { 0, 5, 10 };
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the setting for effect scatter.
|
/// the setting for effect scatter.
|
||||||
/// 带有涟漪特效动画的散点图的动画参数。
|
/// |带有涟漪特效动画的散点图的动画参数。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<float> animationSize { get { return m_AnimationSize; } }
|
public List<float> animationSize { get { return m_AnimationSize; } }
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Text character limitation and adaptation component. When the length of the text exceeds the set length,
|
/// 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.
|
/// it is cropped and suffixes are appended to the end.Only valid in the category axis.
|
||||||
/// 文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。
|
/// |文本字符限制和自适应。当文本长度超过设定的长度时进行裁剪,并将后缀附加在最后。
|
||||||
/// 只在类目轴中有效。
|
/// 只在类目轴中有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
@@ -21,7 +21,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to enable text limit.
|
/// Whether to enable text limit.
|
||||||
/// 是否启用文本自适应。
|
/// |是否启用文本自适应。
|
||||||
/// [default:true]
|
/// [default:true]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool enable
|
public bool enable
|
||||||
@@ -31,8 +31,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set the maximum width. A default of 0 indicates automatic fetch; otherwise, custom.
|
/// 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.
|
/// |Clipping occurs when the width of the text is greater than this value.
|
||||||
/// 设定最大宽度。默认为0表示自动获取,否则表示自定义。当文本的宽度大于该值进行裁剪。
|
/// |设定最大宽度。默认为0表示自动获取,否则表示自定义。当文本的宽度大于该值进行裁剪。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float maxWidth
|
public float maxWidth
|
||||||
{
|
{
|
||||||
@@ -41,7 +41,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// White pixel distance at both ends.
|
/// White pixel distance at both ends.
|
||||||
/// 两边留白像素距离。
|
/// |两边留白像素距离。
|
||||||
/// [default:10f]
|
/// [default:10f]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float gap
|
public float gap
|
||||||
@@ -51,7 +51,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Suffixes when the length exceeds.
|
/// Suffixes when the length exceeds.
|
||||||
/// 长度超出时的后缀。
|
/// |长度超出时的后缀。
|
||||||
/// [default: "..."]
|
/// [default: "..."]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string suffix
|
public string suffix
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Settings related to text.
|
/// Settings related to text.
|
||||||
/// 文本的相关设置。
|
/// |文本的相关设置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class TextStyle : ChildComponent
|
public class TextStyle : ChildComponent
|
||||||
@@ -34,7 +34,7 @@ namespace XCharts.Runtime
|
|||||||
#endif
|
#endif
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Rotation of text.
|
/// Rotation of text.
|
||||||
/// 文本的旋转。
|
/// |文本的旋转。
|
||||||
/// [default: `0f`]
|
/// [default: `0f`]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float rotate
|
public float rotate
|
||||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Extra width of text preferred width.
|
/// Extra width of text preferred width.
|
||||||
/// 额外的宽度
|
/// |额外的宽度
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float extraWidth
|
public float extraWidth
|
||||||
{
|
{
|
||||||
@@ -53,7 +53,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the offset of position.
|
/// the offset of position.
|
||||||
/// 坐标偏移。
|
/// |坐标偏移。
|
||||||
/// [Default: `Vector2.zero`]
|
/// [Default: `Vector2.zero`]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector2 offset
|
public Vector2 offset
|
||||||
@@ -66,7 +66,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of text.
|
/// the color of text.
|
||||||
/// 文本的颜色。
|
/// |文本的颜色。
|
||||||
/// [default: `Color.clear`]
|
/// [default: `Color.clear`]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color color
|
public Color color
|
||||||
@@ -81,7 +81,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of text.
|
/// the color of text.
|
||||||
/// 文本的背景颜色。
|
/// |文本的背景颜色。
|
||||||
/// [default: `Color.clear`]
|
/// [default: `Color.clear`]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color backgroundColor
|
public Color backgroundColor
|
||||||
@@ -91,7 +91,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the font of text. When `null`, the theme's font is used by default.
|
/// the font of text. When `null`, the theme's font is used by default.
|
||||||
/// 文本字体。
|
/// |文本字体。
|
||||||
/// [default: null]
|
/// [default: null]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Font font
|
public Font font
|
||||||
@@ -101,7 +101,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// font size.
|
/// font size.
|
||||||
/// 文本字体大小。
|
/// |文本字体大小。
|
||||||
/// [default: 18]
|
/// [default: 18]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int fontSize
|
public int fontSize
|
||||||
@@ -111,7 +111,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// font style.
|
/// font style.
|
||||||
/// 文本字体的风格。
|
/// |文本字体的风格。
|
||||||
/// [default: FontStyle.Normal]
|
/// [default: FontStyle.Normal]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public FontStyle fontStyle
|
public FontStyle fontStyle
|
||||||
@@ -121,7 +121,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// text line spacing.
|
/// text line spacing.
|
||||||
/// 行间距。
|
/// |行间距。
|
||||||
/// [default: 1f]
|
/// [default: 1f]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float lineSpacing
|
public float lineSpacing
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ namespace XCharts.Runtime
|
|||||||
/// DataZoom component is used for zooming a specific area,
|
/// DataZoom component is used for zooming a specific area,
|
||||||
/// which enables user to investigate data in detail,
|
/// which enables user to investigate data in detail,
|
||||||
/// or get an overview of the data, or get rid of outlier points.
|
/// or get an overview of the data, or get rid of outlier points.
|
||||||
///
|
/// |
|
||||||
/// <para>DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。</para>
|
/// <para>DataZoom 组件 用于区域缩放,从而能自由关注细节的数据信息,或者概览数据整体,或者去除离群点的影响。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
@@ -18,8 +18,8 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generally dataZoom component zoom or roam coordinate system through data filtering
|
/// Generally dataZoom component zoom or roam coordinate system through data filtering
|
||||||
/// and set the windows of axes internally.
|
/// and set the windows of axes internally.
|
||||||
/// Its behaviours vary according to filtering mode settings.
|
/// |Its behaviours vary according to filtering mode settings.
|
||||||
///
|
/// |
|
||||||
/// dataZoom 的运行原理是通过 数据过滤 来达到 数据窗口缩放 的效果。数据过滤模式的设置不同,效果也不同。
|
/// dataZoom 的运行原理是通过 数据过滤 来达到 数据窗口缩放 的效果。数据过滤模式的设置不同,效果也不同。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum FilterMode
|
public enum FilterMode
|
||||||
@@ -99,7 +99,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show dataZoom.
|
/// Whether to show dataZoom.
|
||||||
/// 是否显示缩放区域。
|
/// |是否显示缩放区域。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool enable
|
public bool enable
|
||||||
{
|
{
|
||||||
@@ -108,7 +108,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The mode of data filter.
|
/// The mode of data filter.
|
||||||
/// 数据过滤类型。
|
/// |数据过滤类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public FilterMode filterMode
|
public FilterMode filterMode
|
||||||
{
|
{
|
||||||
@@ -117,7 +117,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify which xAxis is controlled by the dataZoom.
|
/// Specify which xAxis is controlled by the dataZoom.
|
||||||
/// 控制的 x 轴索引列表。
|
/// |控制的 x 轴索引列表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<int> xAxisIndexs
|
public List<int> xAxisIndexs
|
||||||
{
|
{
|
||||||
@@ -126,7 +126,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify which yAxis is controlled by the dataZoom.
|
/// Specify which yAxis is controlled by the dataZoom.
|
||||||
/// 控制的 y 轴索引列表。
|
/// |控制的 y 轴索引列表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<int> yAxisIndexs
|
public List<int> yAxisIndexs
|
||||||
{
|
{
|
||||||
@@ -135,9 +135,9 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether built-in support is supported.
|
/// 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,
|
/// |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).
|
/// mouse wheel, finger swiping (on the touch screen).
|
||||||
///
|
/// |
|
||||||
/// 是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。
|
/// 是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool supportInside
|
public bool supportInside
|
||||||
@@ -163,7 +163,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether a slider is supported. There are separate sliders on which the user zooms or roams.
|
/// Whether a slider is supported. There are separate sliders on which the user zooms or roams.
|
||||||
/// 是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。
|
/// |是否支持滑动条。有单独的滑动条,用户在滑动条上进行缩放或漫游。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool supportSlider
|
public bool supportSlider
|
||||||
{
|
{
|
||||||
@@ -180,7 +180,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show data shadow, to indicate the data tendency in brief.
|
/// Whether to show data shadow, to indicate the data tendency in brief.
|
||||||
/// default:true
|
/// |default:true
|
||||||
/// 是否显示数据阴影。数据阴影可以简单地反应数据走势。
|
/// 是否显示数据阴影。数据阴影可以简单地反应数据走势。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool showDataShadow
|
public bool showDataShadow
|
||||||
@@ -190,7 +190,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show detail, that is, show the detailed data information when dragging.
|
/// Whether to show detail, that is, show the detailed data information when dragging.
|
||||||
/// 是否显示detail,即拖拽时候显示详细数值信息。
|
/// |是否显示detail,即拖拽时候显示详细数值信息。
|
||||||
/// [default: false]
|
/// [default: false]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool showDetail
|
public bool showDetail
|
||||||
@@ -200,7 +200,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify whether to lock the size of window (selected area).
|
/// Specify whether to lock the size of window (selected area).
|
||||||
/// default:false
|
/// |default:false
|
||||||
/// 是否锁定选择区域(或叫做数据窗口)的大小。
|
/// 是否锁定选择区域(或叫做数据窗口)的大小。
|
||||||
/// 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。
|
/// 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -211,13 +211,13 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show data shadow in dataZoom-silder component, to indicate the data tendency in brief.
|
/// Whether to show data shadow in dataZoom-silder component, to indicate the data tendency in brief.
|
||||||
/// default:true
|
/// |default:true
|
||||||
/// 拖动时,是否实时更新系列的视图。如果设置为 false,则只在拖拽结束的时候更新。默认为true,暂不支持修改。
|
/// 拖动时,是否实时更新系列的视图。如果设置为 false,则只在拖拽结束的时候更新。默认为true,暂不支持修改。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool realtime { get { return true; } }
|
public bool realtime { get { return true; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The background color of the component.
|
/// The background color of the component.
|
||||||
/// 组件的背景颜色。
|
/// |组件的背景颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color backgroundColor
|
public Color backgroundColor
|
||||||
{
|
{
|
||||||
@@ -226,7 +226,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of dataZoom data area.
|
/// the color of dataZoom data area.
|
||||||
/// 数据区域颜色。
|
/// |数据区域颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 fillerColor
|
public Color32 fillerColor
|
||||||
{
|
{
|
||||||
@@ -236,7 +236,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of dataZoom border.
|
/// the color of dataZoom border.
|
||||||
/// 边框颜色。
|
/// |边框颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 borderColor
|
public Color32 borderColor
|
||||||
{
|
{
|
||||||
@@ -253,8 +253,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between dataZoom component and the bottom side of the container.
|
/// 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].
|
/// |bottom value is a instant pixel value like 10 or float value [0-1].
|
||||||
/// default:10
|
/// |default:10
|
||||||
/// 组件离容器下侧的距离。
|
/// 组件离容器下侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float bottom
|
public float bottom
|
||||||
@@ -264,8 +264,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between dataZoom component and the top side of the container.
|
/// 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].
|
/// |top value is a instant pixel value like 10 or float value [0-1].
|
||||||
/// default:10
|
/// |default:10
|
||||||
/// 组件离容器上侧的距离。
|
/// 组件离容器上侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float top
|
public float top
|
||||||
@@ -275,8 +275,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between dataZoom component and the left side of the container.
|
/// 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].
|
/// |left value is a instant pixel value like 10 or float value [0-1].
|
||||||
/// default:10
|
/// |default:10
|
||||||
/// 组件离容器左侧的距离。
|
/// 组件离容器左侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float left
|
public float left
|
||||||
@@ -286,8 +286,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between dataZoom component and the right side of the container.
|
/// 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].
|
/// |right value is a instant pixel value like 10 or float value [0-1].
|
||||||
/// default:10
|
/// |default:10
|
||||||
/// 组件离容器右侧的距离。
|
/// 组件离容器右侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float right
|
public float right
|
||||||
@@ -297,8 +297,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Use absolute value or percent value in DataZoom.start and DataZoom.end.
|
/// Use absolute value or percent value in DataZoom.start and DataZoom.end.
|
||||||
/// default:RangeMode.Percent.
|
/// |default:RangeMode.Percent.
|
||||||
/// 取绝对值还是百分比。
|
/// |取绝对值还是百分比。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public RangeMode rangeMode
|
public RangeMode rangeMode
|
||||||
{
|
{
|
||||||
@@ -307,8 +307,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The start percentage of the window out of the data extent, in the range of 0 ~ 100.
|
/// The start percentage of the window out of the data extent, in the range of 0 ~ 100.
|
||||||
/// [default:30].
|
/// |[default:30].
|
||||||
/// 数据窗口范围的起始百分比。范围是:0 ~ 100。
|
/// |数据窗口范围的起始百分比。范围是:0 ~ 100。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float start
|
public float start
|
||||||
{
|
{
|
||||||
@@ -317,7 +317,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The end percentage of the window out of the data extent, in the range of 0 ~ 100.
|
/// The end percentage of the window out of the data extent, in the range of 0 ~ 100.
|
||||||
/// default:70
|
/// |default:70
|
||||||
/// 数据窗口范围的结束百分比。范围是:0 ~ 100。
|
/// 数据窗口范围的结束百分比。范围是:0 ~ 100。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float end
|
public float end
|
||||||
@@ -327,7 +327,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Minimum number of display data. Minimum number of data displayed when DataZoom is enlarged to maximum.
|
/// Minimum number of display data. Minimum number of data displayed when DataZoom is enlarged to maximum.
|
||||||
/// 最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。
|
/// |最小显示数据个数。当DataZoom放大到最大时,最小显示的数据个数。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int minShowNum
|
public int minShowNum
|
||||||
{
|
{
|
||||||
@@ -336,8 +336,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The sensitivity of dataZoom scroll.
|
/// The sensitivity of dataZoom scroll.
|
||||||
/// The larger the number, the more sensitive it is.
|
/// |The larger the number, the more sensitive it is.
|
||||||
/// default:10
|
/// |default:10
|
||||||
/// 缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。
|
/// 缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float scrollSensitivity
|
public float scrollSensitivity
|
||||||
@@ -349,7 +349,7 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify whether the layout of dataZoom component is horizontal or vertical. What's more,
|
/// 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.
|
/// it indicates whether the horizontal axis or vertical axis is controlled by default in catesian coordinate system.
|
||||||
/// 布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
|
/// |布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public Orient orient
|
public Orient orient
|
||||||
@@ -359,7 +359,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// font style.
|
/// font style.
|
||||||
/// 文字格式。
|
/// |文字格式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TextStyle textStyle
|
public TextStyle textStyle
|
||||||
{
|
{
|
||||||
@@ -393,12 +393,12 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The start label.
|
/// The start label.
|
||||||
/// 组件的开始信息文本。
|
/// |组件的开始信息文本。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private ChartText m_StartLabel { get; set; }
|
private ChartText m_StartLabel { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The end label.
|
/// The end label.
|
||||||
/// 组件的结束信息文本。
|
/// |组件的结束信息文本。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private ChartText m_EndLabel { get; set; }
|
private ChartText m_EndLabel { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Legend component.The legend component shows different sets of tags, colors, and names.
|
/// 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.
|
/// You can control which series are not displayed by clicking on the legend.
|
||||||
/// 图例组件。
|
/// |图例组件。
|
||||||
/// 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。
|
/// 图例组件展现了不同系列的标记,颜色和名字。可以通过点击图例控制哪些系列不显示。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
@@ -47,7 +47,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
|
/// Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
|
||||||
/// 图例选择的模式,控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
|
/// |图例选择的模式,控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum SelectedMode
|
public enum SelectedMode
|
||||||
{
|
{
|
||||||
@@ -83,7 +83,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show legend component.
|
/// Whether to show legend component.
|
||||||
/// 是否显示图例组件。
|
/// |是否显示图例组件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Type of legend.
|
/// Type of legend.
|
||||||
/// 图例类型。
|
/// |图例类型。
|
||||||
/// [default:Type.Auto]
|
/// [default:Type.Auto]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Type iconType
|
public Type iconType
|
||||||
@@ -102,7 +102,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
|
/// Selected mode of legend, which controls whether series can be toggled displaying by clicking legends.
|
||||||
/// 选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
|
/// |选择模式。控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 None 关闭。
|
||||||
/// [default:SelectedMode.Multiple]
|
/// [default:SelectedMode.Multiple]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SelectedMode selectedMode
|
public SelectedMode selectedMode
|
||||||
@@ -112,7 +112,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify whether the layout of legend component is horizontal or vertical.
|
/// Specify whether the layout of legend component is horizontal or vertical.
|
||||||
/// 布局方式是横还是竖。
|
/// |布局方式是横还是竖。
|
||||||
/// [default:Orient.Horizonal]
|
/// [default:Orient.Horizonal]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Orient orient
|
public Orient orient
|
||||||
@@ -122,7 +122,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The location of legend.
|
/// The location of legend.
|
||||||
/// 图例显示的位置。
|
/// |图例显示的位置。
|
||||||
/// [default:Location.defaultTop]
|
/// [default:Location.defaultTop]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Location location
|
public Location location
|
||||||
@@ -132,7 +132,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Image width of legend symbol.
|
/// Image width of legend symbol.
|
||||||
/// 图例标记的图形宽度。
|
/// |图例标记的图形宽度。
|
||||||
/// [default:24f]
|
/// [default:24f]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float itemWidth
|
public float itemWidth
|
||||||
@@ -142,7 +142,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Image height of legend symbol.
|
/// Image height of legend symbol.
|
||||||
/// 图例标记的图形高度。
|
/// |图例标记的图形高度。
|
||||||
/// [default:12f]
|
/// [default:12f]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float itemHeight
|
public float itemHeight
|
||||||
@@ -152,7 +152,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout.
|
/// The distance between each legend, horizontal distance in horizontal layout, and vertical distance in vertical layout.
|
||||||
/// 图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。
|
/// |图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。
|
||||||
/// [default:10f]
|
/// [default:10f]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float itemGap
|
public float itemGap
|
||||||
@@ -162,7 +162,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the legend symbol matches the color automatically.
|
/// Whether the legend symbol matches the color automatically.
|
||||||
/// 图例标记的图形是否自动匹配颜色。
|
/// |图例标记的图形是否自动匹配颜色。
|
||||||
/// [default:true]
|
/// [default:true]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool itemAutoColor
|
public bool itemAutoColor
|
||||||
@@ -172,7 +172,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the legend text matches the color automatically.
|
/// Whether the legend text matches the color automatically.
|
||||||
/// 图例标记的文本是否自动匹配颜色。
|
/// |图例标记的文本是否自动匹配颜色。
|
||||||
/// [default:false]
|
/// [default:false]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool textAutoColor
|
public bool textAutoColor
|
||||||
@@ -182,7 +182,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Legend content string template formatter. Support for wrapping lines with \n. Template:{name}.
|
/// Legend content string template formatter. Support for wrapping lines with \n. Template:{name}.
|
||||||
/// 图例内容字符串模版格式器。支持用 \n 换行。
|
/// |图例内容字符串模版格式器。支持用 \n 换行。
|
||||||
/// 模板变量为图例名称 {name}。
|
/// 模板变量为图例名称 {name}。
|
||||||
/// [default:null]
|
/// [default:null]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -193,7 +193,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the style of text.
|
/// the style of text.
|
||||||
/// 文本样式。
|
/// |文本样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TextStyle textStyle
|
public TextStyle textStyle
|
||||||
{
|
{
|
||||||
@@ -203,8 +203,8 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Data array of legend. An array item is usually a name representing string. (If it is a pie chart,
|
/// 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.
|
/// 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.
|
/// |If data is not specified, it will be auto collected from series.
|
||||||
/// 图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。
|
/// |图例的数据数组。数组项通常为一个字符串,每一项代表一个系列的 name(如果是饼图,也可以是饼图单个数据的 name)。
|
||||||
/// 如果 data 没有被指定,会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。
|
/// 如果 data 没有被指定,会自动从当前系列中获取。指定data时里面的数据项和serie匹配时才会生效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<string> data
|
public List<string> data
|
||||||
@@ -241,7 +241,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clear legend data.
|
/// Clear legend data.
|
||||||
/// 清空。
|
/// |清空。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public override void ClearData()
|
public override void ClearData()
|
||||||
{
|
{
|
||||||
@@ -251,7 +251,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether include in legend data by the specified name.
|
/// Whether include in legend data by the specified name.
|
||||||
/// 是否包括由指定名字的图例
|
/// |是否包括由指定名字的图例
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name"></param>
|
/// <param name="name"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@@ -262,7 +262,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Removes the legend with the specified name.
|
/// Removes the legend with the specified name.
|
||||||
/// 移除指定名字的图例。
|
/// |移除指定名字的图例。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name"></param>
|
/// <param name="name"></param>
|
||||||
public void RemoveData(string name)
|
public void RemoveData(string name)
|
||||||
@@ -276,7 +276,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add legend data.
|
/// Add legend data.
|
||||||
/// 添加图例。
|
/// |添加图例。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name"></param>
|
/// <param name="name"></param>
|
||||||
public void AddData(string name)
|
public void AddData(string name)
|
||||||
@@ -290,7 +290,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the legend for the specified index.
|
/// Gets the legend for the specified index.
|
||||||
/// 获得指定索引的图例。
|
/// |获得指定索引的图例。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="index"></param>
|
/// <param name="index"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@@ -305,7 +305,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the index of the specified legend.
|
/// Gets the index of the specified legend.
|
||||||
/// 获得指定图例的索引。
|
/// |获得指定图例的索引。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="legendName"></param>
|
/// <param name="legendName"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@@ -316,7 +316,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Remove all legend buttons.
|
/// Remove all legend buttons.
|
||||||
/// 移除所有图例按钮。
|
/// |移除所有图例按钮。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void RemoveButton()
|
public void RemoveButton()
|
||||||
{
|
{
|
||||||
@@ -325,7 +325,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Bind buttons to legends.
|
/// Bind buttons to legends.
|
||||||
/// 给图例绑定按钮。
|
/// |给图例绑定按钮。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name"></param>
|
/// <param name="name"></param>
|
||||||
/// <param name="btn"></param>
|
/// <param name="btn"></param>
|
||||||
@@ -340,7 +340,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update the legend button color.
|
/// Update the legend button color.
|
||||||
/// 更新图例按钮颜色。
|
/// |更新图例按钮颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name"></param>
|
/// <param name="name"></param>
|
||||||
/// <param name="color"></param>
|
/// <param name="color"></param>
|
||||||
@@ -354,7 +354,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update the text color of legend.
|
/// Update the text color of legend.
|
||||||
/// 更新图例文字颜色。
|
/// |更新图例文字颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name"></param>
|
/// <param name="name"></param>
|
||||||
/// <param name="color"></param>
|
/// <param name="color"></param>
|
||||||
@@ -368,7 +368,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the legend button for the specified index.
|
/// Gets the legend button for the specified index.
|
||||||
/// 获得指定索引的图例按钮。
|
/// |获得指定索引的图例按钮。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="index"></param>
|
/// <param name="index"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@@ -386,7 +386,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Callback handling when parameters change.
|
/// Callback handling when parameters change.
|
||||||
/// 参数变更时的回调处理。
|
/// |参数变更时的回调处理。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void OnChanged()
|
public void OnChanged()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace XCharts.Runtime
|
|||||||
public float height { get; internal set; }
|
public float height { get; internal set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the button list of legend.
|
/// the button list of legend.
|
||||||
/// 图例按钮列表。
|
/// |图例按钮列表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal Dictionary<string, LegendItem> buttonList = new Dictionary<string, LegendItem>();
|
internal Dictionary<string, LegendItem> buttonList = new Dictionary<string, LegendItem>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Special markArea types, are used to label maximum value, minimum value and so on.
|
/// Special markArea types, are used to label maximum value, minimum value and so on.
|
||||||
/// 特殊的标域类型,用于标注最大值最小值等。
|
/// |特殊的标域类型,用于标注最大值最小值等。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public MarkAreaType type
|
public MarkAreaType type
|
||||||
{
|
{
|
||||||
@@ -113,7 +113,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// From which dimension of data to calculate the maximum and minimum value and so on.
|
/// From which dimension of data to calculate the maximum and minimum value and so on.
|
||||||
/// 从哪个维度的数据计算最大最小值等。
|
/// |从哪个维度的数据计算最大最小值等。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int dimension
|
public int dimension
|
||||||
{
|
{
|
||||||
@@ -122,7 +122,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The x coordinate relative to the origin, in pixels.
|
/// The x coordinate relative to the origin, in pixels.
|
||||||
/// 相对原点的 x 坐标,单位像素。当type为None时有效。
|
/// |相对原点的 x 坐标,单位像素。当type为None时有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float xPosition
|
public float xPosition
|
||||||
{
|
{
|
||||||
@@ -131,7 +131,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The y coordinate relative to the origin, in pixels.
|
/// The y coordinate relative to the origin, in pixels.
|
||||||
/// 相对原点的 y 坐标,单位像素。当type为None时有效。
|
/// |相对原点的 y 坐标,单位像素。当type为None时有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float yPosition
|
public float yPosition
|
||||||
{
|
{
|
||||||
@@ -140,7 +140,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <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.
|
/// 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>
|
/// </summary>
|
||||||
public double xValue
|
public double xValue
|
||||||
{
|
{
|
||||||
@@ -149,7 +149,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <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.
|
/// 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>
|
/// </summary>
|
||||||
public double yValue
|
public double yValue
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Use a line in the chart to illustrate.
|
/// Use a line in the chart to illustrate.
|
||||||
/// 图表标线。
|
/// |图表标线。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
[ComponentHandler(typeof(MarkLineHandler), true)]
|
[ComponentHandler(typeof(MarkLineHandler), true)]
|
||||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to display the marking line.
|
/// Whether to display the marking line.
|
||||||
/// 是否显示标线。
|
/// |是否显示标线。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -58,7 +58,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The animation of markline.
|
/// The animation of markline.
|
||||||
/// 标线的动画样式。
|
/// |标线的动画样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AnimationStyle animation
|
public AnimationStyle animation
|
||||||
{
|
{
|
||||||
@@ -70,7 +70,7 @@ namespace XCharts.Runtime
|
|||||||
/// When the group is not 0, two data items of the same group represent the starting point and
|
/// 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
|
/// 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.
|
/// parameters of the line are the parameters of the starting point.
|
||||||
/// 标线的数据列表。当数据项的group为0时,每个数据项表示一条标线;当group不为0时,相同group的两个数据项分别表
|
/// |标线的数据列表。当数据项的group为0时,每个数据项表示一条标线;当group不为0时,相同group的两个数据项分别表
|
||||||
/// 示标线的起始点和终止点来组成一条标线,此时标线的相关样式参数取起始点的参数。
|
/// 示标线的起始点和终止点来组成一条标线,此时标线的相关样式参数取起始点的参数。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<MarkLineData> data
|
public List<MarkLineData> data
|
||||||
@@ -128,7 +128,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Name of the marker, which will display as a label.
|
/// Name of the marker, which will display as a label.
|
||||||
/// 标线名称,将会作为文字显示。label的formatter可通过{b}显示名称,通过{c}显示数值。
|
/// |标线名称,将会作为文字显示。label的formatter可通过{b}显示名称,通过{c}显示数值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string name
|
public string name
|
||||||
{
|
{
|
||||||
@@ -137,7 +137,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Special label types, are used to label maximum value, minimum value and so on.
|
/// Special label types, are used to label maximum value, minimum value and so on.
|
||||||
/// 特殊的标线类型,用于标注最大值最小值等。
|
/// |特殊的标线类型,用于标注最大值最小值等。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public MarkLineType type
|
public MarkLineType type
|
||||||
{
|
{
|
||||||
@@ -146,7 +146,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// From which dimension of data to calculate the maximum and minimum value and so on.
|
/// From which dimension of data to calculate the maximum and minimum value and so on.
|
||||||
/// 从哪个维度的数据计算最大最小值等。
|
/// |从哪个维度的数据计算最大最小值等。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int dimension
|
public int dimension
|
||||||
{
|
{
|
||||||
@@ -155,7 +155,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The x coordinate relative to the origin, in pixels.
|
/// The x coordinate relative to the origin, in pixels.
|
||||||
/// 相对原点的 x 坐标,单位像素。当type为None时有效。
|
/// |相对原点的 x 坐标,单位像素。当type为None时有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float xPosition
|
public float xPosition
|
||||||
{
|
{
|
||||||
@@ -164,7 +164,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The y coordinate relative to the origin, in pixels.
|
/// The y coordinate relative to the origin, in pixels.
|
||||||
/// 相对原点的 y 坐标,单位像素。当type为None时有效。
|
/// |相对原点的 y 坐标,单位像素。当type为None时有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float yPosition
|
public float yPosition
|
||||||
{
|
{
|
||||||
@@ -173,7 +173,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <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.
|
/// 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>
|
/// </summary>
|
||||||
public double xValue
|
public double xValue
|
||||||
{
|
{
|
||||||
@@ -182,7 +182,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <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.
|
/// 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>
|
/// </summary>
|
||||||
public double yValue
|
public double yValue
|
||||||
{
|
{
|
||||||
@@ -191,7 +191,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <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.
|
/// 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>
|
/// </summary>
|
||||||
public int group
|
public int group
|
||||||
{
|
{
|
||||||
@@ -200,7 +200,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Is the origin of the coordinate system.
|
/// Is the origin of the coordinate system.
|
||||||
/// 是否为坐标系原点。
|
/// |是否为坐标系原点。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool zeroPosition
|
public bool zeroPosition
|
||||||
{
|
{
|
||||||
@@ -209,7 +209,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The symbol of the start point of markline.
|
/// The symbol of the start point of markline.
|
||||||
/// 起始点的图形标记。
|
/// |起始点的图形标记。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SymbolStyle startSymbol
|
public SymbolStyle startSymbol
|
||||||
{
|
{
|
||||||
@@ -218,7 +218,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The symbol of the end point of markline.
|
/// The symbol of the end point of markline.
|
||||||
/// 结束点的图形标记。
|
/// |结束点的图形标记。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SymbolStyle endSymbol
|
public SymbolStyle endSymbol
|
||||||
{
|
{
|
||||||
@@ -227,7 +227,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The line style of markline.
|
/// The line style of markline.
|
||||||
/// 标线样式。
|
/// |标线样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LineStyle lineStyle
|
public LineStyle lineStyle
|
||||||
{
|
{
|
||||||
@@ -236,7 +236,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Text styles of label. You can set position to Start, Middle, and End to display text in different locations.
|
/// 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>
|
/// </summary>
|
||||||
public LabelStyle label
|
public LabelStyle label
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Radar render type, in which 'Polygon' and 'Circle' are supported.
|
/// Radar render type, in which 'Polygon' and 'Circle' are supported.
|
||||||
/// 雷达图绘制类型,支持 'Polygon' 和 'Circle'。
|
/// |雷达图绘制类型,支持 'Polygon' 和 'Circle'。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum Shape
|
public enum Shape
|
||||||
{
|
{
|
||||||
@@ -25,7 +25,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The position type of radar.
|
/// The position type of radar.
|
||||||
/// 显示位置。
|
/// |显示位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum PositionType
|
public enum PositionType
|
||||||
{
|
{
|
||||||
@@ -42,7 +42,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicator of radar chart, which is used to assign multiple variables(dimensions) in radar chart.
|
/// Indicator of radar chart, which is used to assign multiple variables(dimensions) in radar chart.
|
||||||
/// 雷达图的指示器,用来指定雷达图中的多个变量(维度)。
|
/// |雷达图的指示器,用来指定雷达图中的多个变量(维度)。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class Indicator
|
public class Indicator
|
||||||
@@ -115,12 +115,12 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// [default:true]
|
/// [default:true]
|
||||||
/// Set this to false to prevent the radar from showing.
|
/// Set this to false to prevent the radar from showing.
|
||||||
/// 是否显示雷达坐标系组件。
|
/// |是否显示雷达坐标系组件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } }
|
public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Radar render type, in which 'Polygon' and 'Circle' are supported.
|
/// Radar render type, in which 'Polygon' and 'Circle' are supported.
|
||||||
/// 雷达图绘制类型,支持 'Polygon' 和 'Circle'。
|
/// |雷达图绘制类型,支持 'Polygon' 和 'Circle'。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public Shape shape
|
public Shape shape
|
||||||
@@ -130,7 +130,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the radius of radar.
|
/// the radius of radar.
|
||||||
/// 雷达图的半径。
|
/// |雷达图的半径。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float radius
|
public float radius
|
||||||
{
|
{
|
||||||
@@ -139,7 +139,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Segments of indicator axis.
|
/// Segments of indicator axis.
|
||||||
/// 指示器轴的分割段数。
|
/// |指示器轴的分割段数。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int splitNumber
|
public int splitNumber
|
||||||
{
|
{
|
||||||
@@ -148,7 +148,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the center of radar chart.
|
/// the center of radar chart.
|
||||||
/// 雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。
|
/// |雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。
|
||||||
/// 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。
|
/// 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float[] center
|
public float[] center
|
||||||
@@ -158,7 +158,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// axis line.
|
/// axis line.
|
||||||
/// 轴线。
|
/// |轴线。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisLine axisLine
|
public AxisLine axisLine
|
||||||
{
|
{
|
||||||
@@ -167,7 +167,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Name options for radar indicators.
|
/// Name options for radar indicators.
|
||||||
/// 雷达图每个指示器名称的配置项。
|
/// |雷达图每个指示器名称的配置项。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisName axisName
|
public AxisName axisName
|
||||||
{
|
{
|
||||||
@@ -176,7 +176,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// split line.
|
/// split line.
|
||||||
/// 分割线。
|
/// |分割线。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisSplitLine splitLine
|
public AxisSplitLine splitLine
|
||||||
{
|
{
|
||||||
@@ -185,7 +185,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Split area of axis in grid area.
|
/// Split area of axis in grid area.
|
||||||
/// 分割区域。
|
/// |分割区域。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AxisSplitArea splitArea
|
public AxisSplitArea splitArea
|
||||||
{
|
{
|
||||||
@@ -194,7 +194,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show indicator.
|
/// Whether to show indicator.
|
||||||
/// 是否显示指示器。
|
/// |是否显示指示器。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool indicator
|
public bool indicator
|
||||||
{
|
{
|
||||||
@@ -203,7 +203,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The gap of indicator and radar.
|
/// The gap of indicator and radar.
|
||||||
/// 指示器和雷达的间距。
|
/// |指示器和雷达的间距。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float indicatorGap
|
public float indicatorGap
|
||||||
{
|
{
|
||||||
@@ -212,7 +212,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated.
|
/// The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated.
|
||||||
/// 最大最小值向上取整的倍率。默认为0时自动计算。
|
/// |最大最小值向上取整的倍率。默认为0时自动计算。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int ceilRate
|
public int ceilRate
|
||||||
{
|
{
|
||||||
@@ -229,7 +229,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The position type of indicator.
|
/// The position type of indicator.
|
||||||
/// 显示位置类型。
|
/// |显示位置类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public PositionType positionType
|
public PositionType positionType
|
||||||
{
|
{
|
||||||
@@ -238,7 +238,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The color displayed when data out of range.
|
/// The color displayed when data out of range.
|
||||||
/// 数值超出范围时显示的颜色。
|
/// |数值超出范围时显示的颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 outRangeColor
|
public Color32 outRangeColor
|
||||||
{
|
{
|
||||||
@@ -247,7 +247,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether serie data connect to radar center with line.
|
/// Whether serie data connect to radar center with line.
|
||||||
/// 数值是否连线到中心点。
|
/// |数值是否连线到中心点。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool connectCenter
|
public bool connectCenter
|
||||||
{
|
{
|
||||||
@@ -256,7 +256,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether need gradient for data line.
|
/// Whether need gradient for data line.
|
||||||
/// 数值线段是否需要渐变。
|
/// |数值线段是否需要渐变。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool lineGradient
|
public bool lineGradient
|
||||||
{
|
{
|
||||||
@@ -265,7 +265,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the indicator list.
|
/// the indicator list.
|
||||||
/// 指示器列表。
|
/// |指示器列表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<Indicator> indicatorList { get { return m_IndicatorList; } }
|
public List<Indicator> indicatorList { get { return m_IndicatorList; } }
|
||||||
|
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the center position of radar in container.
|
/// the center position of radar in container.
|
||||||
/// 雷达图在容器中的具体中心点。
|
/// |雷达图在容器中的具体中心点。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector3 center { get; internal set; }
|
public Vector3 center { get; internal set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the true radius of radar.
|
/// the true radius of radar.
|
||||||
/// 雷达图的运行时实际半径。
|
/// |雷达图的运行时实际半径。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float radius { get; internal set; }
|
public float radius { get; internal set; }
|
||||||
public float dataRadius { get; internal set; }
|
public float dataRadius { get; internal set; }
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Global parameter setting component. The default value can be used in general, and can be adjusted when necessary.
|
/// Global parameter setting component. The default value can be used in general, and can be adjusted when necessary.
|
||||||
/// 全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。
|
/// |全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class Settings : MainComponent
|
public class Settings : MainComponent
|
||||||
@@ -27,7 +27,7 @@ namespace XCharts.Runtime
|
|||||||
public bool show { get { return m_Show; } }
|
public bool show { get { return m_Show; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// max painter.
|
/// max painter.
|
||||||
/// 设定的painter数量。
|
/// |设定的painter数量。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int maxPainter
|
public int maxPainter
|
||||||
{
|
{
|
||||||
@@ -69,7 +69,7 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Curve smoothing factor. By adjusting the smoothing coefficient, the curvature of the curve can be changed,
|
/// 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.
|
/// and different curves with slightly different appearance can be obtained.
|
||||||
/// 曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。
|
/// |曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float lineSmoothStyle
|
public float lineSmoothStyle
|
||||||
{
|
{
|
||||||
@@ -78,8 +78,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Smoothness of curve. The smaller the value, the smoother the curve, but the number of vertices will increase.
|
/// 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>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public float lineSmoothness
|
public float lineSmoothness
|
||||||
@@ -91,7 +91,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 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 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.
|
/// the higher the number of vertices. When the area with gradient is filled, the larger the value, the worse the transition effect.
|
||||||
/// 线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。
|
/// |线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public float lineSegmentDistance
|
public float lineSegmentDistance
|
||||||
@@ -101,7 +101,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the smoothess of cricle.
|
/// the smoothess of cricle.
|
||||||
/// 圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。
|
/// |圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float cicleSmoothness
|
public float cicleSmoothness
|
||||||
{
|
{
|
||||||
@@ -111,7 +111,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of line serie legend.
|
/// the width of line serie legend.
|
||||||
/// Line类型图例图标的线条宽度。
|
/// |Line类型图例图标的线条宽度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float legendIconLineWidth
|
public float legendIconLineWidth
|
||||||
{
|
{
|
||||||
@@ -121,7 +121,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <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)).
|
/// 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>
|
/// </summary>
|
||||||
public float[] legendIconCornerRadius
|
public float[] legendIconCornerRadius
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Title component, including main title and subtitle.
|
/// Title component, including main title and subtitle.
|
||||||
/// 标题组件,包含主标题和副标题。
|
/// |标题组件,包含主标题和副标题。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
[ComponentHandler(typeof(TitleHander), true)]
|
[ComponentHandler(typeof(TitleHander), true)]
|
||||||
@@ -23,17 +23,17 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// [default:true]
|
/// [default:true]
|
||||||
/// Set this to false to prevent the title from showing.
|
/// Set this to false to prevent the title from showing.
|
||||||
/// 是否显示标题组件。
|
/// |是否显示标题组件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } }
|
public bool show { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The main title text, supporting \n for newlines.
|
/// The main title text, supporting \n for newlines.
|
||||||
/// 主标题文本,支持使用 \n 换行。
|
/// |主标题文本,支持使用 \n 换行。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string text { get { return m_Text; } set { if (PropertyUtil.SetClass(ref m_Text, value)) SetComponentDirty(); } }
|
public string text { get { return m_Text; } set { if (PropertyUtil.SetClass(ref m_Text, value)) SetComponentDirty(); } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The text style of main title.
|
/// The text style of main title.
|
||||||
/// 主标题文本样式。
|
/// |主标题文本样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TextStyle textStyle
|
public TextStyle textStyle
|
||||||
{
|
{
|
||||||
@@ -42,7 +42,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Subtitle text, supporting for \n for newlines.
|
/// Subtitle text, supporting for \n for newlines.
|
||||||
/// 副标题文本,支持使用 \n 换行。
|
/// |副标题文本,支持使用 \n 换行。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string subText
|
public string subText
|
||||||
{
|
{
|
||||||
@@ -51,7 +51,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The text style of sub title.
|
/// The text style of sub title.
|
||||||
/// 副标题文本样式。
|
/// |副标题文本样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TextStyle subTextStyle
|
public TextStyle subTextStyle
|
||||||
{
|
{
|
||||||
@@ -61,7 +61,7 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// [default:8]
|
/// [default:8]
|
||||||
/// The gap between the main title and subtitle.
|
/// The gap between the main title and subtitle.
|
||||||
/// 主副标题之间的间距。
|
/// |主副标题之间的间距。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float itemGap
|
public float itemGap
|
||||||
{
|
{
|
||||||
@@ -70,7 +70,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The location of title component.
|
/// The location of title component.
|
||||||
/// 标题显示位置。
|
/// |标题显示位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Location location
|
public Location location
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the title of serie.
|
/// the title of serie.
|
||||||
/// 标题相关设置。
|
/// |标题相关设置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class TitleStyle : ChildComponent, ISerieDataComponent, ISerieExtraComponent
|
public class TitleStyle : ChildComponent, ISerieDataComponent, ISerieExtraComponent
|
||||||
@@ -17,7 +17,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show title.
|
/// Whether to show title.
|
||||||
/// 是否显示标题。
|
/// |是否显示标题。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -26,7 +26,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The offset position relative to the center.
|
/// The offset position relative to the center.
|
||||||
/// 相对于中心的偏移位置。
|
/// |相对于中心的偏移位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector2 offsetCenter
|
public Vector2 offsetCenter
|
||||||
{
|
{
|
||||||
@@ -36,7 +36,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of text.
|
/// the color of text.
|
||||||
/// 文本的颜色。
|
/// |文本的颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TextStyle textStyle
|
public TextStyle textStyle
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Tooltip component.
|
/// Tooltip component.
|
||||||
/// 提示框组件。
|
/// |提示框组件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
[ComponentHandler(typeof(TooltipHandler), true)]
|
[ComponentHandler(typeof(TooltipHandler), true)]
|
||||||
@@ -17,7 +17,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicator type.
|
/// Indicator type.
|
||||||
/// 指示器类型。
|
/// |指示器类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum Type
|
public enum Type
|
||||||
{
|
{
|
||||||
@@ -105,7 +105,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show the tooltip component.
|
/// Whether to show the tooltip component.
|
||||||
/// 是否显示提示框组件。
|
/// |是否显示提示框组件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -114,7 +114,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicator type.
|
/// Indicator type.
|
||||||
/// 提示框指示器类型。
|
/// |提示框指示器类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Type type
|
public Type type
|
||||||
{
|
{
|
||||||
@@ -123,7 +123,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Type of triggering.
|
/// Type of triggering.
|
||||||
/// 触发类型。
|
/// |触发类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Trigger trigger
|
public Trigger trigger
|
||||||
{
|
{
|
||||||
@@ -132,21 +132,21 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The string template formatter for the tooltip title content. Support for wrapping lines with \n.
|
/// 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.
|
/// |The placeholder {I} can be set separately to indicate that the title is ignored and not displayed.
|
||||||
/// Template variables are {.}, {a}, {b}, {c}, {d}.
|
/// |Template variables are {.}, {a}, {b}, {c}, {d}.
|
||||||
/// {.} is the dot of the corresponding color of a Serie that is currently indicated or whose index is 0.
|
/// |{.} is the dot of the corresponding color of a Serie that is currently indicated or whose index is 0.
|
||||||
/// {a} is the series name of the serie that is currently indicated or whose index is 0.
|
/// |{a} is the series name of the serie that is currently indicated or whose index is 0.
|
||||||
/// {b} is the name of the data item serieData that is currently indicated or whose index is 0, or a category value (such as the X-axis of a line chart).
|
/// |{b} is the name of the data item serieData that is currently indicated or whose index is 0, or a category value (such as the X-axis of a line chart).
|
||||||
/// {c} is the value of a Y-dimension (dimesion is 1) from a Serie that is currently indicated or whose index is 0.
|
/// |{c} is the value of a Y-dimension (dimesion is 1) from a Serie that is currently indicated or whose index is 0.
|
||||||
/// {d} is the percentage value of Y-dimensions (dimesion is 1) from serie that is currently indicated or whose index is 0, with no % sign.
|
/// |{d} is the percentage value of Y-dimensions (dimesion is 1) from serie that is currently indicated or whose index is 0, with no % sign.
|
||||||
/// {e} is the name of the data item serieData that is currently indicated or whose index is 0.
|
/// |{e} is the name of the data item serieData that is currently indicated or whose index is 0.
|
||||||
/// {.1} represents a dot from serie corresponding color that specifies index as 1.
|
/// |{.1} represents a dot from serie corresponding color that specifies index as 1.
|
||||||
/// 1 in {a1}, {b1}, {c1} represents a serie that specifies an index of 1.
|
/// |1 in {a1}, {b1}, {c1} represents a serie that specifies an index of 1.
|
||||||
/// {c1:2} represents the third data from serie's current indication data item indexed to 1 (a data item has multiple data, index 2 represents the third data).
|
/// |{c1:2} represents the third data from serie's current indication data item indexed to 1 (a data item has multiple data, index 2 represents the third data).
|
||||||
/// {c1:2-2} represents the third data item from serie's third data item indexed to 1 (i.e., which data item must be specified to specify).
|
/// |{c1:2-2} represents the third data item from serie's third data item indexed to 1 (i.e., which data item must be specified to specify).
|
||||||
/// {d1:2: F2} indicates that a formatted string with a value specified separately is F2 (numericFormatter is used when numericFormatter is not specified).
|
/// |{d1:2: F2} indicates that a formatted string with a value specified separately is F2 (numericFormatter is used when numericFormatter is not specified).
|
||||||
/// {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 ).
|
/// |{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 ).
|
||||||
/// Example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1} : {c1:1-1: f1}"
|
/// |Example: "{a}, {c}", "{a1}, {c1: f1}", "{a1}, {c1:0: f1}", "{a1} : {c1:1-1: f1}"
|
||||||
/// 提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。
|
/// 提示框标题内容的字符串模版格式器。支持用 \n 换行。可以单独设置占位符{i}表示忽略不显示title。
|
||||||
/// 模板变量有{.}、{a}、{b}、{c}、{d}、{e}。
|
/// 模板变量有{.}、{a}、{b}、{c}、{d}、{e}。
|
||||||
/// {.}为当前所指示或index为0的serie的对应颜色的圆点。
|
/// {.}为当前所指示或index为0的serie的对应颜色的圆点。
|
||||||
@@ -166,41 +166,41 @@ namespace XCharts.Runtime
|
|||||||
public string titleFormatter { get { return m_TitleFormatter; } set { m_TitleFormatter = value; } }
|
public string titleFormatter { get { return m_TitleFormatter; } set { m_TitleFormatter = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// a string template formatter for a single Serie or data item content. Support for wrapping lines with \n.
|
/// a string template formatter for a single Serie or data item content. Support for wrapping lines with \n.
|
||||||
/// When formatter is not null, use formatter first, otherwise use itemFormatter.
|
/// |When formatter is not null, use formatter first, otherwise use itemFormatter.
|
||||||
/// 提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。当formatter不为空时,优先使用formatter,否则使用itemFormatter。
|
/// |提示框单个serie或数据项内容的字符串模版格式器。支持用 \n 换行。当formatter不为空时,优先使用formatter,否则使用itemFormatter。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string itemFormatter { get { return m_ItemFormatter; } set { m_ItemFormatter = value; } }
|
public string itemFormatter { get { return m_ItemFormatter; } set { m_ItemFormatter = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the marker of serie.
|
/// the marker of serie.
|
||||||
/// serie的符号标志。
|
/// |serie的符号标志。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string marker { get { return m_Marker; } set { m_Marker = value; } }
|
public string marker { get { return m_Marker; } set { m_Marker = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fixed width. Higher priority than minWidth.
|
/// Fixed width. Higher priority than minWidth.
|
||||||
/// 固定宽度。比 minWidth 优先。
|
/// |固定宽度。比 minWidth 优先。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float fixedWidth { get { return m_FixedWidth; } set { m_FixedWidth = value; } }
|
public float fixedWidth { get { return m_FixedWidth; } set { m_FixedWidth = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fixed height. Higher priority than minHeight.
|
/// Fixed height. Higher priority than minHeight.
|
||||||
/// 固定高度。比 minHeight 优先。
|
/// |固定高度。比 minHeight 优先。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float fixedHeight { get { return m_FixedHeight; } set { m_FixedHeight = value; } }
|
public float fixedHeight { get { return m_FixedHeight; } set { m_FixedHeight = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Minimum width. If fixedWidth has a value, get fixedWidth first.
|
/// Minimum width. If fixedWidth has a value, get fixedWidth first.
|
||||||
/// 最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。
|
/// |最小宽度。如若 fixedWidth 设有值,优先取 fixedWidth。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float minWidth { get { return m_MinWidth; } set { m_MinWidth = value; } }
|
public float minWidth { get { return m_MinWidth; } set { m_MinWidth = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Minimum height. If fixedHeight has a value, take priority over fixedHeight.
|
/// Minimum height. If fixedHeight has a value, take priority over fixedHeight.
|
||||||
/// 最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。
|
/// |最小高度。如若 fixedHeight 设有值,优先取 fixedHeight。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float minHeight { get { return m_MinHeight; } set { m_MinHeight = value; } }
|
public float minHeight { get { return m_MinHeight; } set { m_MinHeight = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Standard numeric format string. Used to format numeric values to display as strings.
|
/// Standard numeric format string. Used to format numeric values to display as strings.
|
||||||
/// Using 'Axx' form: 'A' is the single character of the format specifier, supporting 'C' currency,
|
/// |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,
|
/// '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'.
|
/// '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。
|
/// 使用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
|
/// 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -212,53 +212,53 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the text padding of left and right. defaut:5.
|
/// the text padding of left and right. defaut:5.
|
||||||
/// 左右边距。
|
/// |左右边距。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int paddingLeftRight { get { return m_PaddingLeftRight; } set { m_PaddingLeftRight = value; } }
|
public int paddingLeftRight { get { return m_PaddingLeftRight; } set { m_PaddingLeftRight = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the text padding of top and bottom. defaut:5.
|
/// the text padding of top and bottom. defaut:5.
|
||||||
/// 上下边距。
|
/// |上下边距。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int paddingTopBottom { get { return m_PaddingTopBottom; } set { m_PaddingTopBottom = value; } }
|
public int paddingTopBottom { get { return m_PaddingTopBottom; } set { m_PaddingTopBottom = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show ignored data on tooltip.
|
/// Whether to show ignored data on tooltip.
|
||||||
/// 是否显示忽略数据在tooltip上。
|
/// |是否显示忽略数据在tooltip上。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool ignoreDataShow { get { return m_IgnoreDataShow; } set { m_IgnoreDataShow = value; } }
|
public bool ignoreDataShow { get { return m_IgnoreDataShow; } set { m_IgnoreDataShow = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The default display character information for ignored data.
|
/// The default display character information for ignored data.
|
||||||
/// 被忽略数据的默认显示字符信息。
|
/// |被忽略数据的默认显示字符信息。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ignoreDataDefaultContent { get { return m_IgnoreDataDefaultContent; } set { m_IgnoreDataDefaultContent = value; } }
|
public string ignoreDataDefaultContent { get { return m_IgnoreDataDefaultContent; } set { m_IgnoreDataDefaultContent = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The background image of tooltip.
|
/// The background image of tooltip.
|
||||||
/// 提示框的背景图片。
|
/// |提示框的背景图片。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Sprite backgroundImage { get { return m_BackgroundImage; } set { m_BackgroundImage = value; SetComponentDirty(); } }
|
public Sprite backgroundImage { get { return m_BackgroundImage; } set { m_BackgroundImage = value; SetComponentDirty(); } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The background color of tooltip.
|
/// The background color of tooltip.
|
||||||
/// 提示框的背景颜色。
|
/// |提示框的背景颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color backgroundColor { get { return m_BackgroundColor; } set { m_BackgroundColor = value; SetComponentDirty(); } }
|
public Color backgroundColor { get { return m_BackgroundColor; } set { m_BackgroundColor = value; SetComponentDirty(); } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to trigger after always display.
|
/// Whether to trigger after always display.
|
||||||
/// 是否触发后一直显示提示框浮层。
|
/// |是否触发后一直显示提示框浮层。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool alwayShowContent { get { return m_AlwayShowContent; } set { m_AlwayShowContent = value; } }
|
public bool alwayShowContent { get { return m_AlwayShowContent; } set { m_AlwayShowContent = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show the tooltip floating layer, whose default value is true.
|
/// 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.
|
/// |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>
|
/// </summary>
|
||||||
public bool showContent { get { return m_ShowContent; } set { m_ShowContent = value; } }
|
public bool showContent { get { return m_ShowContent; } set { m_ShowContent = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The position offset of tooltip relative to the mouse position.
|
/// The position offset of tooltip relative to the mouse position.
|
||||||
/// 提示框相对于鼠标位置的偏移。
|
/// |提示框相对于鼠标位置的偏移。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector2 offset { get { return m_Offset; } set { m_Offset = value; } }
|
public Vector2 offset { get { return m_Offset; } set { m_Offset = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of tooltip border.
|
/// the width of tooltip border.
|
||||||
/// 边框线宽。
|
/// |边框线宽。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float borderWidth
|
public float borderWidth
|
||||||
{
|
{
|
||||||
@@ -267,7 +267,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of tooltip border.
|
/// the color of tooltip border.
|
||||||
/// 边框颜色。
|
/// |边框颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 borderColor
|
public Color32 borderColor
|
||||||
{
|
{
|
||||||
@@ -306,7 +306,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the text style of content.
|
/// the text style of content.
|
||||||
/// 提示框标签的文本样式。
|
/// |提示框标签的文本样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TextStyle labelTextStyle
|
public TextStyle labelTextStyle
|
||||||
{
|
{
|
||||||
@@ -330,7 +330,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the line style of indicator line.
|
/// the line style of indicator line.
|
||||||
/// 指示线样式。
|
/// |指示线样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LineStyle lineStyle
|
public LineStyle lineStyle
|
||||||
{
|
{
|
||||||
@@ -358,14 +358,14 @@ namespace XCharts.Runtime
|
|||||||
public Dictionary<int, List<int>> runtimeSerieIndex = new Dictionary<int, List<int>>();
|
public Dictionary<int, List<int>> runtimeSerieIndex = new Dictionary<int, List<int>>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The data index currently indicated by Tooltip.
|
/// The data index currently indicated by Tooltip.
|
||||||
/// 当前提示框所指示的数据项索引。
|
/// |当前提示框所指示的数据项索引。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<int> runtimeDataIndex { get { return m_RuntimeDateIndex; } internal set { m_RuntimeDateIndex = value; } }
|
public List<int> runtimeDataIndex { get { return m_RuntimeDateIndex; } internal set { m_RuntimeDateIndex = value; } }
|
||||||
private List<int> m_RuntimeDateIndex = new List<int>() { -1, -1 };
|
private List<int> m_RuntimeDateIndex = new List<int>() { -1, -1 };
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Keep Tooltiop displayed at the top.
|
/// Keep Tooltiop displayed at the top.
|
||||||
/// 保持Tooltiop显示在最顶上
|
/// |保持Tooltiop显示在最顶上
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void KeepTop()
|
public void KeepTop()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,9 +4,42 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace XCharts.Runtime
|
namespace XCharts.Runtime
|
||||||
{
|
{
|
||||||
|
[System.Serializable]
|
||||||
|
public class VisualMapPieces : ChildComponent
|
||||||
|
{
|
||||||
|
[SerializeField] private double m_Min;
|
||||||
|
[SerializeField] private double m_Max;
|
||||||
|
[SerializeField] private string m_Label;
|
||||||
|
[SerializeField] private Color32 m_Color;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 范围最小值
|
||||||
|
/// </summary>
|
||||||
|
public double min { get { return m_Min; } set { m_Min = value; } }
|
||||||
|
/// <summary>
|
||||||
|
/// 范围最大值
|
||||||
|
/// </summary>
|
||||||
|
public double max { get { return m_Max; } set { m_Max = value; } }
|
||||||
|
/// <summary>
|
||||||
|
/// 文字描述
|
||||||
|
/// </summary>
|
||||||
|
public string label { get { return m_Label; } set { m_Label = value; } }
|
||||||
|
/// <summary>
|
||||||
|
/// 颜色
|
||||||
|
/// </summary>
|
||||||
|
public Color32 color { get { return m_Color; } set { m_Color = value; } }
|
||||||
|
|
||||||
|
public bool Contains(double value, double minMaxRange)
|
||||||
|
{
|
||||||
|
var cmin = System.Math.Abs(m_Min) < 1 ? minMaxRange * m_Min : m_Min;
|
||||||
|
var cmax = System.Math.Abs(m_Max) < 1 ? minMaxRange * m_Max : m_Max;
|
||||||
|
return value >= cmin && value < cmax;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// VisualMap component. Mapping data to visual elements such as colors.
|
/// VisualMap component. Mapping data to visual elements such as colors.
|
||||||
/// 视觉映射组件。用于进行『视觉编码』,也就是将数据映射到视觉元素(视觉通道)。
|
/// |视觉映射组件。用于进行『视觉编码』,也就是将数据映射到视觉元素(视觉通道)。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
[ComponentHandler(typeof(VisualMapHandler), true)]
|
[ComponentHandler(typeof(VisualMapHandler), true)]
|
||||||
@@ -42,39 +75,6 @@ namespace XCharts.Runtime
|
|||||||
Single
|
Single
|
||||||
}
|
}
|
||||||
|
|
||||||
[System.Serializable]
|
|
||||||
public class Pieces
|
|
||||||
{
|
|
||||||
[SerializeField] private double m_Min;
|
|
||||||
[SerializeField] private double m_Max;
|
|
||||||
[SerializeField] private string m_Label;
|
|
||||||
[SerializeField] private Color32 m_Color;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 范围最小值
|
|
||||||
/// </summary>
|
|
||||||
public double min { get { return m_Min; } set { m_Min = value; } }
|
|
||||||
/// <summary>
|
|
||||||
/// 范围最大值
|
|
||||||
/// </summary>
|
|
||||||
public double max { get { return m_Max; } set { m_Max = value; } }
|
|
||||||
/// <summary>
|
|
||||||
/// 文字描述
|
|
||||||
/// </summary>
|
|
||||||
public string label { get { return m_Label; } set { m_Label = value; } }
|
|
||||||
/// <summary>
|
|
||||||
/// 颜色
|
|
||||||
/// </summary>
|
|
||||||
public Color32 color { get { return m_Color; } set { m_Color = value; } }
|
|
||||||
|
|
||||||
public bool Contains(double value, double minMaxRange)
|
|
||||||
{
|
|
||||||
var cmin = System.Math.Abs(m_Min) < 1 ? minMaxRange * m_Min : m_Min;
|
|
||||||
var cmax = System.Math.Abs(m_Max) < 1 ? minMaxRange * m_Max : m_Max;
|
|
||||||
return value >= cmin && value < cmax;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[SerializeField] private bool m_Show = true;
|
[SerializeField] private bool m_Show = true;
|
||||||
[SerializeField] private Type m_Type = Type.Continuous;
|
[SerializeField] private Type m_Type = Type.Continuous;
|
||||||
[SerializeField] private SelectedMode m_SelectedMode = SelectedMode.Multiple;
|
[SerializeField] private SelectedMode m_SelectedMode = SelectedMode.Multiple;
|
||||||
@@ -99,13 +99,13 @@ namespace XCharts.Runtime
|
|||||||
[SerializeField] private Location m_Location = Location.defaultLeft;
|
[SerializeField] private Location m_Location = Location.defaultLeft;
|
||||||
[SerializeField] private List<Color32> m_InRange = new List<Color32>();
|
[SerializeField] private List<Color32> m_InRange = new List<Color32>();
|
||||||
[SerializeField] private List<Color32> m_OutOfRange = new List<Color32>() { Color.gray };
|
[SerializeField] private List<Color32> m_OutOfRange = new List<Color32>() { Color.gray };
|
||||||
[SerializeField] private List<Pieces> m_Pieces = new List<Pieces>();
|
[SerializeField] private List<VisualMapPieces> m_Pieces = new List<VisualMapPieces>();
|
||||||
|
|
||||||
public VisualMapContext context = new VisualMapContext();
|
public VisualMapContext context = new VisualMapContext();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to display components. If set to false, it will not show up, but the data mapping function still exists.
|
/// Whether to display components. If set to false, it will not show up, but the data mapping function still exists.
|
||||||
///
|
/// |
|
||||||
/// 是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。
|
/// 是否显示组件。如果设置为 false,不会显示,但是数据映射的功能还存在。
|
||||||
///
|
///
|
||||||
/// [default: true]
|
/// [default: true]
|
||||||
@@ -117,7 +117,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of visualmap component.
|
/// the type of visualmap component.
|
||||||
/// 组件类型。
|
/// |组件类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Type type
|
public Type type
|
||||||
{
|
{
|
||||||
@@ -126,7 +126,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the selected mode for Piecewise visualMap.
|
/// the selected mode for Piecewise visualMap.
|
||||||
/// 选择模式。
|
/// |选择模式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SelectedMode selectedMode
|
public SelectedMode selectedMode
|
||||||
{
|
{
|
||||||
@@ -135,7 +135,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the serie index of visualMap.
|
/// the serie index of visualMap.
|
||||||
/// 影响的serie索引。
|
/// |影响的serie索引。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int serieIndex
|
public int serieIndex
|
||||||
{
|
{
|
||||||
@@ -144,7 +144,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The minimum allowed. 'min' must be user specified. [visualmap.min, visualmap.max] forms the "domain" of the visualMap.
|
/// The minimum allowed. 'min' must be user specified. [visualmap.min, visualmap.max] forms the "domain" of the visualMap.
|
||||||
///
|
/// |
|
||||||
/// 允许的最小值。`autoMinMax`为`false`时必须指定。[visualMap.min, visualMap.max] 形成了视觉映射的『定义域』。
|
/// 允许的最小值。`autoMinMax`为`false`时必须指定。[visualMap.min, visualMap.max] 形成了视觉映射的『定义域』。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double min
|
public double min
|
||||||
@@ -154,7 +154,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The maximum allowed. 'max' must be user specified. [visualmap.min, visualmap.max] forms the "domain" of the visualMap.
|
/// The maximum allowed. 'max' must be user specified. [visualmap.min, visualmap.max] forms the "domain" of the visualMap.
|
||||||
///
|
/// |
|
||||||
/// 允许的最大值。`autoMinMax`为`false`时必须指定。[visualMap.min, visualMax.max] 形成了视觉映射的『定义域』。
|
/// 允许的最大值。`autoMinMax`为`false`时必须指定。[visualMap.min, visualMax.max] 形成了视觉映射的『定义域』。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double max
|
public double max
|
||||||
@@ -164,24 +164,24 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max].
|
/// Specifies the position of the numeric value corresponding to the handle. Range should be within the range of [min,max].
|
||||||
///
|
/// |
|
||||||
/// 指定手柄对应数值的位置。range 应在[min,max]范围内。
|
/// 指定手柄对应数值的位置。range 应在[min,max]范围内。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double[] range { get { return m_Range; } }
|
public double[] range { get { return m_Range; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Text on both ends.
|
/// Text on both ends.
|
||||||
/// 两端的文本,如 ['High', 'Low']。
|
/// |两端的文本,如 ['High', 'Low']。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string[] text { get { return m_Text; } }
|
public string[] text { get { return m_Text; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The distance between the two text bodies.
|
/// The distance between the two text bodies.
|
||||||
/// 两端文字主体之间的距离,单位为px。
|
/// |两端文字主体之间的距离,单位为px。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float[] textGap { get { return m_TextGap; } }
|
public float[] textGap { get { return m_TextGap; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// For continuous data, it is automatically evenly divided into several segments
|
/// 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.
|
/// and automatically matches the size of inRange color list when the default is 0.
|
||||||
///
|
/// |
|
||||||
/// 对于连续型数据,自动平均切分成几段,默认为0时自动匹配inRange颜色列表大小。
|
/// 对于连续型数据,自动平均切分成几段,默认为0时自动匹配inRange颜色列表大小。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
@@ -192,7 +192,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the handle used for dragging is displayed (the handle can be dragged to adjust the selected range).
|
/// Whether the handle used for dragging is displayed (the handle can be dragged to adjust the selected range).
|
||||||
///
|
/// |
|
||||||
/// 是否显示拖拽用的手柄(手柄能拖拽调整选中范围)。
|
/// 是否显示拖拽用的手柄(手柄能拖拽调整选中范围)。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool calculable
|
public bool calculable
|
||||||
@@ -202,7 +202,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to update in real time while dragging.
|
/// Whether to update in real time while dragging.
|
||||||
///
|
/// |
|
||||||
/// 拖拽时,是否实时更新。
|
/// 拖拽时,是否实时更新。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool realtime
|
public bool realtime
|
||||||
@@ -212,7 +212,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The width of the figure, that is, the width of the color bar.
|
/// The width of the figure, that is, the width of the color bar.
|
||||||
///
|
/// |
|
||||||
/// 图形的宽度,即颜色条的宽度。
|
/// 图形的宽度,即颜色条的宽度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float itemWidth
|
public float itemWidth
|
||||||
@@ -222,7 +222,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The height of the figure, that is, the height of the color bar.
|
/// The height of the figure, that is, the height of the color bar.
|
||||||
///
|
/// |
|
||||||
/// 图形的高度,即颜色条的高度。
|
/// 图形的高度,即颜色条的高度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float itemHeight
|
public float itemHeight
|
||||||
@@ -240,7 +240,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Border line width.
|
/// Border line width.
|
||||||
///
|
/// |
|
||||||
/// 边框线宽,单位px。
|
/// 边框线宽,单位px。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float borderWidth
|
public float borderWidth
|
||||||
@@ -250,8 +250,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specifies "which dimension" of the data to map to the visual element. "Data" is series.data.
|
/// 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 中最后一个维度。
|
/// 指定用数据的『哪个维度』,映射到视觉元素上。『数据』即 series.data。从1开始,默认为0取 data 中最后一个维度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int dimension
|
public int dimension
|
||||||
@@ -262,9 +262,9 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// When the hoverLink function is turned on, when the mouse hovers over the visualMap component,
|
/// 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.
|
/// 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.
|
/// the corresponding value of the visualMap component is triangulated in the corresponding position.
|
||||||
///
|
/// |
|
||||||
/// 打开 hoverLink 功能时,鼠标悬浮到 visualMap 组件上时,鼠标位置对应的数值 在 图表中对应的图形元素,会高亮。
|
/// 打开 hoverLink 功能时,鼠标悬浮到 visualMap 组件上时,鼠标位置对应的数值 在 图表中对应的图形元素,会高亮。
|
||||||
/// 反之,鼠标悬浮到图表中的图形元素上时,在 visualMap 组件的相应位置会有三角提示其所对应的数值。
|
/// 反之,鼠标悬浮到图表中的图形元素上时,在 visualMap 组件的相应位置会有三角提示其所对应的数值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -285,7 +285,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify whether the layout of component is horizontal or vertical.
|
/// Specify whether the layout of component is horizontal or vertical.
|
||||||
///
|
/// |
|
||||||
/// 布局方式是横还是竖。
|
/// 布局方式是横还是竖。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Orient orient
|
public Orient orient
|
||||||
@@ -295,7 +295,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The location of component.
|
/// The location of component.
|
||||||
/// 组件显示的位置。
|
/// |组件显示的位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Location location
|
public Location location
|
||||||
{
|
{
|
||||||
@@ -304,7 +304,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defines the visual color in the selected range.
|
/// Defines the visual color in the selected range.
|
||||||
/// 定义 在选中范围中 的视觉颜色。
|
/// |定义 在选中范围中 的视觉颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<Color32> inRange
|
public List<Color32> inRange
|
||||||
{
|
{
|
||||||
@@ -313,7 +313,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defines a visual color outside of the selected range.
|
/// Defines a visual color outside of the selected range.
|
||||||
/// 定义 在选中范围外 的视觉颜色。
|
/// |定义 在选中范围外 的视觉颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<Color32> outOfRange
|
public List<Color32> outOfRange
|
||||||
{
|
{
|
||||||
@@ -323,7 +323,7 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 分段式每一段的相关配置。
|
/// 分段式每一段的相关配置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<Pieces> pieces
|
public List<VisualMapPieces> pieces
|
||||||
{
|
{
|
||||||
get { return m_Pieces; }
|
get { return m_Pieces; }
|
||||||
set { if (value != null) { m_Pieces = value; SetVerticesDirty(); } }
|
set { if (value != null) { m_Pieces = value; SetVerticesDirty(); } }
|
||||||
|
|||||||
@@ -7,11 +7,9 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Grid component.
|
/// 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.
|
||||||
/// <para>
|
/// |网格组件。
|
||||||
/// 网格组件。
|
|
||||||
/// 直角坐标系内绘图网格。可以在网格上绘制折线图,柱状图,散点图。
|
/// 直角坐标系内绘图网格。可以在网格上绘制折线图,柱状图,散点图。
|
||||||
/// </para>
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
[ComponentHandler(typeof(GridCoordHandler), true)]
|
[ComponentHandler(typeof(GridCoordHandler), true)]
|
||||||
@@ -31,7 +29,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show the grid in rectangular coordinate.
|
/// Whether to show the grid in rectangular coordinate.
|
||||||
/// 是否显示直角坐标系网格。
|
/// |是否显示直角坐标系网格。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -40,7 +38,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between grid component and the left side of the container.
|
/// Distance between grid component and the left side of the container.
|
||||||
/// grid 组件离容器左侧的距离。
|
/// |grid 组件离容器左侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float left
|
public float left
|
||||||
{
|
{
|
||||||
@@ -49,7 +47,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between grid component and the right side of the container.
|
/// Distance between grid component and the right side of the container.
|
||||||
/// grid 组件离容器右侧的距离。
|
/// |grid 组件离容器右侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float right
|
public float right
|
||||||
{
|
{
|
||||||
@@ -58,7 +56,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between grid component and the top side of the container.
|
/// Distance between grid component and the top side of the container.
|
||||||
/// grid 组件离容器上侧的距离。
|
/// |grid 组件离容器上侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float top
|
public float top
|
||||||
{
|
{
|
||||||
@@ -67,7 +65,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between grid component and the bottom side of the container.
|
/// Distance between grid component and the bottom side of the container.
|
||||||
/// grid 组件离容器下侧的距离。
|
/// |grid 组件离容器下侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float bottom
|
public float bottom
|
||||||
{
|
{
|
||||||
@@ -76,7 +74,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Background color of grid, which is transparent by default.
|
/// Background color of grid, which is transparent by default.
|
||||||
/// 网格背景色,默认透明。
|
/// |网格背景色,默认透明。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 backgroundColor
|
public Color32 backgroundColor
|
||||||
{
|
{
|
||||||
@@ -85,7 +83,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show the grid border.
|
/// Whether to show the grid border.
|
||||||
/// 是否显示网格边框。
|
/// |是否显示网格边框。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool showBorder
|
public bool showBorder
|
||||||
{
|
{
|
||||||
@@ -94,7 +92,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Border width of grid.
|
/// Border width of grid.
|
||||||
/// 网格边框宽。
|
/// |网格边框宽。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float borderWidth
|
public float borderWidth
|
||||||
{
|
{
|
||||||
@@ -103,7 +101,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The color of grid border.
|
/// The color of grid border.
|
||||||
/// 网格边框颜色。
|
/// |网格边框颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 borderColor
|
public Color32 borderColor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,11 +6,9 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Grid component.
|
/// 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.
|
||||||
/// <para>
|
/// |网格组件。
|
||||||
/// 网格组件。
|
|
||||||
/// 直角坐标系内绘图网格。可以在网格上绘制折线图,柱状图,散点图。
|
/// 直角坐标系内绘图网格。可以在网格上绘制折线图,柱状图,散点图。
|
||||||
/// </para>
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
[ComponentHandler(typeof(ParallelCoordHandler), true)]
|
[ComponentHandler(typeof(ParallelCoordHandler), true)]
|
||||||
@@ -28,7 +26,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show the grid in rectangular coordinate.
|
/// Whether to show the grid in rectangular coordinate.
|
||||||
/// 是否显示直角坐标系网格。
|
/// |是否显示直角坐标系网格。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -37,7 +35,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Orientation of the axis. By default, it's 'Vertical'. You can set it to be 'Horizonal' to make a vertical axis.
|
/// Orientation of the axis. By default, it's 'Vertical'. You can set it to be 'Horizonal' to make a vertical axis.
|
||||||
/// 坐标轴朝向。默认为垂直朝向。
|
/// |坐标轴朝向。默认为垂直朝向。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Orient orient
|
public Orient orient
|
||||||
{
|
{
|
||||||
@@ -46,7 +44,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between grid component and the left side of the container.
|
/// Distance between grid component and the left side of the container.
|
||||||
/// grid 组件离容器左侧的距离。
|
/// |grid 组件离容器左侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float left
|
public float left
|
||||||
{
|
{
|
||||||
@@ -55,7 +53,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between grid component and the right side of the container.
|
/// Distance between grid component and the right side of the container.
|
||||||
/// grid 组件离容器右侧的距离。
|
/// |grid 组件离容器右侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float right
|
public float right
|
||||||
{
|
{
|
||||||
@@ -64,7 +62,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between grid component and the top side of the container.
|
/// Distance between grid component and the top side of the container.
|
||||||
/// grid 组件离容器上侧的距离。
|
/// |grid 组件离容器上侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float top
|
public float top
|
||||||
{
|
{
|
||||||
@@ -73,7 +71,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between grid component and the bottom side of the container.
|
/// Distance between grid component and the bottom side of the container.
|
||||||
/// grid 组件离容器下侧的距离。
|
/// |grid 组件离容器下侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float bottom
|
public float bottom
|
||||||
{
|
{
|
||||||
@@ -82,7 +80,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Background color of grid, which is transparent by default.
|
/// Background color of grid, which is transparent by default.
|
||||||
/// 网格背景色,默认透明。
|
/// |网格背景色,默认透明。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color backgroundColor
|
public Color backgroundColor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
private Dictionary<int, double> m_SerieDimMin = new Dictionary<int, double>();
|
private Dictionary<int, double> m_SerieDimMin = new Dictionary<int, double>();
|
||||||
private Dictionary<int, double> m_SerieDimMax = new Dictionary<int, double>();
|
private Dictionary<int, double> m_SerieDimMax = new Dictionary<int, double>();
|
||||||
private float m_LastInterval;
|
private double m_LastInterval;
|
||||||
private int m_LastSplitNumber;
|
private int m_LastSplitNumber;
|
||||||
|
|
||||||
public override void InitComponent()
|
public override void InitComponent()
|
||||||
|
|||||||
@@ -6,10 +6,8 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Polar coordinate can be used in scatter and line chart. Every polar coordinate has an angleAxis and a radiusAxis.
|
/// Polar coordinate can be used in scatter and line chart. Every polar coordinate has an angleAxis and a radiusAxis.
|
||||||
/// <para>
|
/// |极坐标系组件。
|
||||||
/// 极坐标系组件。
|
|
||||||
/// 极坐标系,可以用于散点图和折线图。每个极坐标系拥有一个角度轴和一个半径轴。
|
/// 极坐标系,可以用于散点图和折线图。每个极坐标系拥有一个角度轴和一个半径轴。
|
||||||
/// </para>
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
[ComponentHandler(typeof(PolarCoordHandler), true)]
|
[ComponentHandler(typeof(PolarCoordHandler), true)]
|
||||||
@@ -26,7 +24,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show the polor component.
|
/// Whether to show the polor component.
|
||||||
/// 是否显示极坐标。
|
/// |是否显示极坐标。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -35,8 +33,8 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// [default:[0.5f,0.45f]]The center of ploar. The center[0] is the x-coordinate, and the center[1] is the y-coordinate.
|
/// [default:[0.5f,0.45f]]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.
|
/// |When value between 0 and 1 represents a percentage relative to the chart.
|
||||||
/// 极坐标的中心点。数组的第一项是横坐标,第二项是纵坐标。
|
/// |极坐标的中心点。数组的第一项是横坐标,第二项是纵坐标。
|
||||||
/// 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。
|
/// 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float[] center
|
public float[] center
|
||||||
@@ -46,7 +44,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// [default:0.35f]the radius of polar.
|
/// [default:0.35f]the radius of polar.
|
||||||
/// 极坐标的半径。
|
/// |极坐标的半径。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float radius
|
public float radius
|
||||||
{
|
{
|
||||||
@@ -55,7 +53,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// [default:Color.clear]Background color of polar, which is transparent by default.
|
/// [default:Color.clear]Background color of polar, which is transparent by default.
|
||||||
/// 极坐标的背景色,默认透明。
|
/// |极坐标的背景色,默认透明。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color backgroundColor
|
public Color backgroundColor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the center position of polar in container.
|
/// the center position of polar in container.
|
||||||
/// 极坐标在容器中的具体中心点。
|
/// |极坐标在容器中的具体中心点。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector3 center { get; internal set; }
|
public Vector3 center { get; internal set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the true radius of polar.
|
/// the true radius of polar.
|
||||||
/// 极坐标的运行时实际半径。
|
/// |极坐标的运行时实际半径。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float radius { get; internal set; }
|
public float radius { get; internal set; }
|
||||||
public bool isPointerEnter { get; set; }
|
public bool isPointerEnter { get; set; }
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the maximum and minimum values of the specified dimension of a serie.
|
/// Gets the maximum and minimum values of the specified dimension of a serie.
|
||||||
/// 获得系列指定维数的最大最小值。
|
/// |获得系列指定维数的最大最小值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serie">指定系列</param>
|
/// <param name="serie">指定系列</param>
|
||||||
/// <param name="dimension">指定维数</param>
|
/// <param name="dimension">指定维数</param>
|
||||||
@@ -149,7 +149,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the maximum and minimum values of all data in the serie.
|
/// Gets the maximum and minimum values of all data in the serie.
|
||||||
/// 获得系列所有数据的最大最小值。
|
/// |获得系列所有数据的最大最小值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serie"></param>
|
/// <param name="serie"></param>
|
||||||
/// <param name="min"></param>
|
/// <param name="min"></param>
|
||||||
@@ -185,7 +185,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the data for the specified dimension of serie are all 0.
|
/// Whether the data for the specified dimension of serie are all 0.
|
||||||
/// 系列指定维数的数据是否全部为0。
|
/// |系列指定维数的数据是否全部为0。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serie">系列</param>
|
/// <param name="serie">系列</param>
|
||||||
/// <param name="dimension">指定维数</param>
|
/// <param name="dimension">指定维数</param>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace XCharts.Runtime
|
|||||||
[CreateAssetMenu(menuName = "XCharts/Export Lang")]
|
[CreateAssetMenu(menuName = "XCharts/Export Lang")]
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Language.
|
/// Language.
|
||||||
/// 国际化语言表。
|
/// |国际化语言表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Lang : ScriptableObject
|
public class Lang : ScriptableObject
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,13 +8,13 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The base class of all charts.
|
/// The base class of all charts.
|
||||||
/// 所有Chart的基类。
|
/// |所有Chart的基类。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class BaseChart
|
public partial class BaseChart
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The name of chart.
|
/// The name of chart.
|
||||||
/// </summary>
|
/// |</summary>
|
||||||
public string chartName
|
public string chartName
|
||||||
{
|
{
|
||||||
get { return m_ChartName; }
|
get { return m_ChartName; }
|
||||||
@@ -32,31 +32,31 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The theme.
|
/// The theme.
|
||||||
/// </summary>
|
/// |</summary>
|
||||||
public ThemeStyle theme { get { return m_Theme; } set { m_Theme = value; } }
|
public ThemeStyle theme { get { return m_Theme; } set { m_Theme = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Global parameter setting component.
|
/// Global parameter setting component.
|
||||||
/// 全局设置组件。
|
/// |全局设置组件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Settings settings { get { return m_Settings; } }
|
public Settings settings { get { return m_Settings; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The x of chart.
|
/// The x of chart.
|
||||||
/// 图表的X
|
/// |图表的X
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float chartX { get { return m_ChartX; } }
|
public float chartX { get { return m_ChartX; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The y of chart.
|
/// The y of chart.
|
||||||
/// 图表的Y
|
/// |图表的Y
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float chartY { get { return m_ChartY; } }
|
public float chartY { get { return m_ChartY; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The width of chart.
|
/// The width of chart.
|
||||||
/// 图表的宽
|
/// |图表的宽
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float chartWidth { get { return m_ChartWidth; } }
|
public float chartWidth { get { return m_ChartWidth; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The height of chart.
|
/// The height of chart.
|
||||||
/// 图表的高
|
/// |图表的高
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float chartHeight { get { return m_ChartHeight; } }
|
public float chartHeight { get { return m_ChartHeight; } }
|
||||||
public Vector2 chartMinAnchor { get { return m_ChartMinAnchor; } }
|
public Vector2 chartMinAnchor { get { return m_ChartMinAnchor; } }
|
||||||
@@ -65,7 +65,7 @@ namespace XCharts.Runtime
|
|||||||
public Vector2 chartSizeDelta { get { return m_ChartSizeDelta; } }
|
public Vector2 chartSizeDelta { get { return m_ChartSizeDelta; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The position of chart.
|
/// The position of chart.
|
||||||
/// 图表的左下角起始坐标。
|
/// |图表的左下角起始坐标。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector3 chartPosition { get { return m_ChartPosition; } }
|
public Vector3 chartPosition { get { return m_ChartPosition; } }
|
||||||
public Rect chartRect { get { return m_ChartRect; } }
|
public Rect chartRect { get { return m_ChartRect; } }
|
||||||
@@ -93,12 +93,12 @@ namespace XCharts.Runtime
|
|||||||
public CustomDrawGaugePointerFunction customDrawGaugePointerFunction { set { m_CustomDrawGaugePointerFunction = value; } get { return m_CustomDrawGaugePointerFunction; } }
|
public CustomDrawGaugePointerFunction customDrawGaugePointerFunction { set { m_CustomDrawGaugePointerFunction = value; } get { return m_CustomDrawGaugePointerFunction; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the callback function of click pie area.
|
/// the callback function of click pie area.
|
||||||
/// 点击饼图区域回调。参数:PointerEventData,SerieIndex,SerieDataIndex
|
/// |点击饼图区域回调。参数:PointerEventData,SerieIndex,SerieDataIndex
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Action<PointerEventData, int, int> onPointerClickPie { set { m_OnPointerClickPie = value; m_ForceOpenRaycastTarget = true; } get { return m_OnPointerClickPie; } }
|
public Action<PointerEventData, int, int> onPointerClickPie { set { m_OnPointerClickPie = value; m_ForceOpenRaycastTarget = true; } get { return m_OnPointerClickPie; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the callback function of click bar.
|
/// the callback function of click bar.
|
||||||
/// 点击柱形图柱条回调。参数:eventData, dataIndex
|
/// |点击柱形图柱条回调。参数:eventData, dataIndex
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Action<PointerEventData, int> onPointerClickBar { set { m_OnPointerClickBar = value; m_ForceOpenRaycastTarget = true; } }
|
public Action<PointerEventData, int> onPointerClickBar { set { m_OnPointerClickBar = value; m_ForceOpenRaycastTarget = true; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -120,7 +120,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Redraw chart in next frame.
|
/// Redraw chart in next frame.
|
||||||
/// 在下一帧刷新图表。
|
/// |在下一帧刷新图表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void RefreshChart()
|
public void RefreshChart()
|
||||||
{
|
{
|
||||||
@@ -130,8 +130,8 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Remove all series and legend data.
|
/// Remove all series and legend data.
|
||||||
/// It just emptying all of serie's data without emptying the list of series.
|
/// |It just emptying all of serie's data without emptying the list of series.
|
||||||
/// 清除所有数据,系列中只是移除数据,列表会保留。
|
/// |清除所有数据,系列中只是移除数据,列表会保留。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual void ClearData()
|
public virtual void ClearData()
|
||||||
{
|
{
|
||||||
@@ -145,8 +145,8 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Remove all data from series and legend.
|
/// Remove all data from series and legend.
|
||||||
/// The series list is also cleared.
|
/// |The series list is also cleared.
|
||||||
/// 清除所有系列和图例数据,系列的列表也会被清除。
|
/// |清除所有系列和图例数据,系列的列表也会被清除。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual void RemoveData()
|
public virtual void RemoveData()
|
||||||
{
|
{
|
||||||
@@ -160,7 +160,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Remove legend and serie by name.
|
/// Remove legend and serie by name.
|
||||||
/// 清除指定系列名称的数据。
|
/// |清除指定系列名称的数据。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieName">the name of serie</param>
|
/// <param name="serieName">the name of serie</param>
|
||||||
public virtual void RemoveData(string serieName)
|
public virtual void RemoveData(string serieName)
|
||||||
@@ -198,7 +198,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether serie is activated.
|
/// Whether serie is activated.
|
||||||
/// 获得指定图例名字的系列是否显示。
|
/// |获得指定图例名字的系列是否显示。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="legendName"></param>
|
/// <param name="legendName"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@@ -227,7 +227,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update chart theme.
|
/// Update chart theme.
|
||||||
/// 切换内置主题。
|
/// |切换内置主题。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="theme">theme</param>
|
/// <param name="theme">theme</param>
|
||||||
public bool UpdateTheme(ThemeType theme)
|
public bool UpdateTheme(ThemeType theme)
|
||||||
@@ -245,7 +245,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update chart theme info.
|
/// Update chart theme info.
|
||||||
/// 切换图表主题。
|
/// |切换图表主题。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="theme">theme</param>
|
/// <param name="theme">theme</param>
|
||||||
public void UpdateTheme(Theme theme)
|
public void UpdateTheme(Theme theme)
|
||||||
@@ -259,7 +259,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether series animation enabel.
|
/// Whether series animation enabel.
|
||||||
/// 启用或关闭起始动画。
|
/// |启用或关闭起始动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="flag"></param>
|
/// <param name="flag"></param>
|
||||||
public void AnimationEnable(bool flag)
|
public void AnimationEnable(bool flag)
|
||||||
@@ -269,7 +269,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// fadeIn animation.
|
/// fadeIn animation.
|
||||||
/// 开始渐入动画。
|
/// |开始渐入动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void AnimationFadeIn()
|
public void AnimationFadeIn()
|
||||||
{
|
{
|
||||||
@@ -278,7 +278,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// fadeIn animation.
|
/// fadeIn animation.
|
||||||
/// 开始渐出动画。
|
/// |开始渐出动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void AnimationFadeOut()
|
public void AnimationFadeOut()
|
||||||
{
|
{
|
||||||
@@ -287,7 +287,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Pause animation.
|
/// Pause animation.
|
||||||
/// 暂停动画。
|
/// |暂停动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void AnimationPause()
|
public void AnimationPause()
|
||||||
{
|
{
|
||||||
@@ -296,7 +296,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Stop play animation.
|
/// Stop play animation.
|
||||||
/// 继续动画。
|
/// |继续动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void AnimationResume()
|
public void AnimationResume()
|
||||||
{
|
{
|
||||||
@@ -305,7 +305,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reset animation.
|
/// Reset animation.
|
||||||
/// 重置动画。
|
/// |重置动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void AnimationReset()
|
public void AnimationReset()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -349,7 +349,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// reutrn true when all the show axis is `Value` type.
|
/// reutrn true when all the show axis is `Value` type.
|
||||||
/// 纯数值坐标轴(数值轴或对数轴)。
|
/// |纯数值坐标轴(数值轴或对数轴)。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsAllAxisValue()
|
public bool IsAllAxisValue()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -194,8 +194,8 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add a data to serie.
|
/// 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>
|
/// </summary>
|
||||||
/// <param name="serieName">the name of serie</param>
|
/// <param name="serieName">the name of serie</param>
|
||||||
/// <param name="data">the data to add</param>
|
/// <param name="data">the data to add</param>
|
||||||
@@ -216,7 +216,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add a data to serie.
|
/// Add a data to serie.
|
||||||
/// 添加一个数据到指定的系列中。
|
/// |添加一个数据到指定的系列中。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieIndex">the index of serie</param>
|
/// <param name="serieIndex">the index of serie</param>
|
||||||
/// <param name="data">the data to add</param>
|
/// <param name="data">the data to add</param>
|
||||||
@@ -237,7 +237,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add an arbitray dimension data to serie,such as (x,y,z,...).
|
/// Add an arbitray dimension data to serie,such as (x,y,z,...).
|
||||||
/// 添加多维数据(x,y,z...)到指定的系列中。
|
/// |添加多维数据(x,y,z...)到指定的系列中。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieName">the name of serie</param>
|
/// <param name="serieName">the name of serie</param>
|
||||||
/// <param name="multidimensionalData">the (x,y,z,...) data</param>
|
/// <param name="multidimensionalData">the (x,y,z,...) data</param>
|
||||||
@@ -258,7 +258,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add an arbitray dimension data to serie,such as (x,y,z,...).
|
/// Add an arbitray dimension data to serie,such as (x,y,z,...).
|
||||||
/// 添加多维数据(x,y,z...)到指定的系列中。
|
/// |添加多维数据(x,y,z...)到指定的系列中。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieIndex">the index of serie,index starts at 0</param>
|
/// <param name="serieIndex">the index of serie,index starts at 0</param>
|
||||||
/// <param name="multidimensionalData">the (x,y,z,...) data</param>
|
/// <param name="multidimensionalData">the (x,y,z,...) data</param>
|
||||||
@@ -279,7 +279,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add a (x,y) data to serie.
|
/// Add a (x,y) data to serie.
|
||||||
/// 添加(x,y)数据到指定系列中。
|
/// |添加(x,y)数据到指定系列中。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieName">the name of serie</param>
|
/// <param name="serieName">the name of serie</param>
|
||||||
/// <param name="xValue">x data</param>
|
/// <param name="xValue">x data</param>
|
||||||
@@ -301,7 +301,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add a (x,y) data to serie.
|
/// Add a (x,y) data to serie.
|
||||||
/// 添加(x,y)数据到指定系列中。
|
/// |添加(x,y)数据到指定系列中。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieIndex">the index of serie</param>
|
/// <param name="serieIndex">the index of serie</param>
|
||||||
/// <param name="xValue">x data</param>
|
/// <param name="xValue">x data</param>
|
||||||
@@ -345,7 +345,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update serie data by serie name.
|
/// Update serie data by serie name.
|
||||||
/// 更新指定系列中的指定索引数据。
|
/// |更新指定系列中的指定索引数据。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieName">the name of serie</param>
|
/// <param name="serieName">the name of serie</param>
|
||||||
/// <param name="dataIndex">the index of data</param>
|
/// <param name="dataIndex">the index of data</param>
|
||||||
@@ -364,7 +364,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update serie data by serie index.
|
/// Update serie data by serie index.
|
||||||
/// 更新指定系列中的指定索引数据。
|
/// |更新指定系列中的指定索引数据。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieIndex">the index of serie</param>
|
/// <param name="serieIndex">the index of serie</param>
|
||||||
/// <param name="dataIndex">the index of data</param>
|
/// <param name="dataIndex">the index of data</param>
|
||||||
@@ -457,7 +457,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update serie data name.
|
/// Update serie data name.
|
||||||
/// 更新指定系列中的指定索引数据名称。
|
/// |更新指定系列中的指定索引数据名称。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieName"></param>
|
/// <param name="serieName"></param>
|
||||||
/// <param name="dataIndex"></param>
|
/// <param name="dataIndex"></param>
|
||||||
@@ -475,7 +475,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update serie data name.
|
/// Update serie data name.
|
||||||
/// 更新指定系列中的指定索引数据名称。
|
/// |更新指定系列中的指定索引数据名称。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieIndex"></param>
|
/// <param name="serieIndex"></param>
|
||||||
/// <param name="dataName"></param>
|
/// <param name="dataName"></param>
|
||||||
@@ -521,7 +521,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show serie.
|
/// Whether to show serie.
|
||||||
/// 设置指定系列是否显示。
|
/// |设置指定系列是否显示。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieName">the name of serie</param>
|
/// <param name="serieName">the name of serie</param>
|
||||||
/// <param name="active">Active or not</param>
|
/// <param name="active">Active or not</param>
|
||||||
@@ -534,7 +534,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show serie.
|
/// Whether to show serie.
|
||||||
/// 设置指定系列是否显示。
|
/// |设置指定系列是否显示。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="serieIndex">the index of serie</param>
|
/// <param name="serieIndex">the index of serie</param>
|
||||||
/// <param name="active">Active or not</param>
|
/// <param name="active">Active or not</param>
|
||||||
@@ -555,7 +555,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add a category data to xAxis.
|
/// Add a category data to xAxis.
|
||||||
/// 添加一个类目数据到指定的x轴。
|
/// |添加一个类目数据到指定的x轴。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="category">the category data</param>
|
/// <param name="category">the category data</param>
|
||||||
/// <param name="xAxisIndex">which xAxis should category add to</param>
|
/// <param name="xAxisIndex">which xAxis should category add to</param>
|
||||||
@@ -570,7 +570,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update category data.
|
/// Update category data.
|
||||||
/// 更新X轴类目数据。
|
/// |更新X轴类目数据。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="index">the index of category data</param>
|
/// <param name="index">the index of category data</param>
|
||||||
/// <param name="category"></param>
|
/// <param name="category"></param>
|
||||||
@@ -586,7 +586,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add an icon to xAxis.
|
/// Add an icon to xAxis.
|
||||||
/// 添加一个图标到指定的x轴。
|
/// |添加一个图标到指定的x轴。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="icon"></param>
|
/// <param name="icon"></param>
|
||||||
/// <param name="xAxisIndex"></param>
|
/// <param name="xAxisIndex"></param>
|
||||||
@@ -601,7 +601,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update xAxis icon.
|
/// Update xAxis icon.
|
||||||
/// 更新X轴图标。
|
/// |更新X轴图标。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="index"></param>
|
/// <param name="index"></param>
|
||||||
/// <param name="icon"></param>
|
/// <param name="icon"></param>
|
||||||
@@ -617,7 +617,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add a category data to yAxis.
|
/// Add a category data to yAxis.
|
||||||
/// 添加一个类目数据到指定的y轴。
|
/// |添加一个类目数据到指定的y轴。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="category">the category data</param>
|
/// <param name="category">the category data</param>
|
||||||
/// <param name="yAxisIndex">which yAxis should category add to</param>
|
/// <param name="yAxisIndex">which yAxis should category add to</param>
|
||||||
@@ -632,7 +632,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update category data.
|
/// Update category data.
|
||||||
/// 更新Y轴类目数据。
|
/// |更新Y轴类目数据。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="index">the index of category data</param>
|
/// <param name="index">the index of category data</param>
|
||||||
/// <param name="category"></param>
|
/// <param name="category"></param>
|
||||||
@@ -648,7 +648,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add an icon to yAxis.
|
/// Add an icon to yAxis.
|
||||||
/// 添加一个图标到指定的y轴。
|
/// |添加一个图标到指定的y轴。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="icon"></param>
|
/// <param name="icon"></param>
|
||||||
/// <param name="yAxisIndex"></param>
|
/// <param name="yAxisIndex"></param>
|
||||||
|
|||||||
@@ -7,44 +7,44 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The base class of all graphs or components.
|
/// The base class of all graphs or components.
|
||||||
/// 所有图形的基类。
|
/// |所有图形的基类。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class BaseGraph
|
public partial class BaseGraph
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The x of graph.
|
/// The x of graph.
|
||||||
/// 图形的X
|
/// |图形的X
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float graphX { get { return m_GraphX; } }
|
public float graphX { get { return m_GraphX; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The y of graph.
|
/// The y of graph.
|
||||||
/// 图形的Y
|
/// |图形的Y
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float graphY { get { return m_GraphY; } }
|
public float graphY { get { return m_GraphY; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The width of graph.
|
/// The width of graph.
|
||||||
/// 图形的宽
|
/// |图形的宽
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float graphWidth { get { return m_GraphWidth; } }
|
public float graphWidth { get { return m_GraphWidth; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The height of graph.
|
/// The height of graph.
|
||||||
/// 图形的高
|
/// |图形的高
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float graphHeight { get { return m_GraphHeight; } }
|
public float graphHeight { get { return m_GraphHeight; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The position of graph.
|
/// The position of graph.
|
||||||
/// 图形的左下角起始坐标。
|
/// |图形的左下角起始坐标。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector3 graphPosition { get { return m_GraphPosition; } }
|
public Vector3 graphPosition { get { return m_GraphPosition; } }
|
||||||
public Rect graphRect { get { return m_GraphRect; } }
|
public Rect graphRect { get { return m_GraphRect; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The postion of pointer.
|
/// The postion of pointer.
|
||||||
/// 鼠标位置。
|
/// |鼠标位置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector2 pointerPos { get; protected set; }
|
public Vector2 pointerPos { get; protected set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the mouse pointer is in the chart.
|
/// Whether the mouse pointer is in the chart.
|
||||||
/// 鼠标是否在图表内。
|
/// |鼠标是否在图表内。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool isPointerInChart { get; protected set; }
|
public bool isPointerInChart { get; protected set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -119,7 +119,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Redraw graph in next frame.
|
/// Redraw graph in next frame.
|
||||||
/// 在下一帧刷新图形。
|
/// |在下一帧刷新图形。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void RefreshGraph()
|
public void RefreshGraph()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Coordinate system component.
|
/// Coordinate system component.
|
||||||
///
|
/// |
|
||||||
/// 坐标系系统。
|
/// 坐标系系统。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The delegate function for AxisLabel's formatter.
|
/// The delegate function for AxisLabel's formatter.
|
||||||
/// AxisLabel的formatter自定义委托。
|
/// |AxisLabel的formatter自定义委托。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="labelIndex">label索引</param>
|
/// <param name="labelIndex">label索引</param>
|
||||||
/// <param name="value">当前label对应的数值数据,Value轴或Time轴有效</param>
|
/// <param name="value">当前label对应的数值数据,Value轴或Time轴有效</param>
|
||||||
@@ -16,7 +16,7 @@ namespace XCharts.Runtime
|
|||||||
public delegate string AxisLabelFormatterFunction(int labelIndex, double value, string category);
|
public delegate string AxisLabelFormatterFunction(int labelIndex, double value, string category);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The delegate function for SerieLabel‘s formatter.
|
/// The delegate function for SerieLabel‘s formatter.
|
||||||
/// SerieLabel的formatter自定义委托。
|
/// |SerieLabel的formatter自定义委托。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="dataIndex">数据索引</param>
|
/// <param name="dataIndex">数据索引</param>
|
||||||
/// <param name="value">数值</param>
|
/// <param name="value">数值</param>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the layout is horizontal or vertical.
|
/// the layout is horizontal or vertical.
|
||||||
/// 垂直还是水平布局方式。
|
/// |垂直还是水平布局方式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum Orient
|
public enum Orient
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -127,8 +127,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
public class XChartsPackageResourceImporterWindow : UnityEditor.EditorWindow
|
public class XChartsPackageResourceImporterWindow : UnityEditor.EditorWindow
|
||||||
{
|
{
|
||||||
[SerializeField]
|
[SerializeField] XCResourcesImporter m_ResourceImporter;
|
||||||
XCResourcesImporter m_ResourceImporter;
|
|
||||||
|
|
||||||
static XChartsPackageResourceImporterWindow m_ImporterWindow;
|
static XChartsPackageResourceImporterWindow m_ImporterWindow;
|
||||||
|
|
||||||
@@ -168,7 +167,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Limits the minimum size of the editor window.
|
/// Limits the minimum size of the editor window.
|
||||||
/// </summary>
|
/// |</summary>
|
||||||
void SetEditorWindowSize()
|
void SetEditorWindowSize()
|
||||||
{
|
{
|
||||||
EditorWindow editorWindow = this;
|
EditorWindow editorWindow = this;
|
||||||
|
|||||||
@@ -29,6 +29,12 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void CheckReloadTheme()
|
||||||
|
{
|
||||||
|
if (XChartsMgr.themeNames.Count < 0)
|
||||||
|
ReloadThemeList();
|
||||||
|
}
|
||||||
|
|
||||||
public static void AddTheme(Theme theme)
|
public static void AddTheme(Theme theme)
|
||||||
{
|
{
|
||||||
if (theme == null) return;
|
if (theme == null) return;
|
||||||
|
|||||||
@@ -30,23 +30,23 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The style of area.
|
/// The style of area.
|
||||||
/// 区域填充样式。
|
/// |区域填充样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AreaStyle areaStyle { get { return m_AreaStyles.Count > 0 ? m_AreaStyles[0] : null; } }
|
public AreaStyle areaStyle { get { return m_AreaStyles.Count > 0 ? m_AreaStyles[0] : null; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Text label of graphic element,to explain some data information about graphic item like value, name and so on.
|
/// Text label of graphic element,to explain some data information about graphic item like value, name and so on.
|
||||||
/// 图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
|
/// |图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LabelStyle label { get { return m_Labels.Count > 0 ? m_Labels[0] : null; } }
|
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; } }
|
public LabelStyle endLabel { get { return m_EndLabels.Count > 0 ? m_EndLabels[0] : null; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The line of label.
|
/// The line of label.
|
||||||
/// 标签上的视觉引导线。
|
/// |标签上的视觉引导线。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LabelLine labelLine { get { return m_LabelLines.Count > 0 ? m_LabelLines[0] : null; } }
|
public LabelLine labelLine { get { return m_LabelLines.Count > 0 ? m_LabelLines[0] : null; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The arrow of line.
|
/// The arrow of line.
|
||||||
/// 折线图的箭头。
|
/// |折线图的箭头。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LineArrow lineArrow { get { return m_LineArrows.Count > 0 ? m_LineArrows[0] : null; } }
|
public LineArrow lineArrow { get { return m_LineArrows.Count > 0 ? m_LineArrows[0] : null; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -55,12 +55,12 @@ namespace XCharts.Runtime
|
|||||||
public Emphasis emphasis { get { return m_Emphases.Count > 0 ? m_Emphases[0] : null; } }
|
public Emphasis emphasis { get { return m_Emphases.Count > 0 ? m_Emphases[0] : null; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the icon of data.
|
/// the icon of data.
|
||||||
/// 数据项图标样式。
|
/// |数据项图标样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IconStyle iconStyle { get { return m_IconStyles.Count > 0 ? m_IconStyles[0] : null; } }
|
public IconStyle iconStyle { get { return m_IconStyles.Count > 0 ? m_IconStyles[0] : null; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the icon of data.
|
/// the icon of data.
|
||||||
/// 数据项标题样式。
|
/// |数据项标题样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TitleStyle titleStyle { get { return m_TitleStyles.Count > 0 ? m_TitleStyles[0] : null; } }
|
public TitleStyle titleStyle { get { return m_TitleStyles.Count > 0 ? m_TitleStyles[0] : null; } }
|
||||||
|
|
||||||
|
|||||||
@@ -17,19 +17,19 @@ namespace XCharts.Runtime
|
|||||||
None,
|
None,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Use central angle to show the percentage of data, radius to show data size.
|
/// Use central angle to show the percentage of data, radius to show data size.
|
||||||
/// 扇区圆心角展现数据的百分比,半径展现数据的大小。
|
/// |扇区圆心角展现数据的百分比,半径展现数据的大小。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Radius,
|
Radius,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// All the sectors will share the same central angle, the data size is shown only through radiuses.
|
/// All the sectors will share the same central angle, the data size is shown only through radiuses.
|
||||||
/// 所有扇区圆心角相同,仅通过半径展现数据大小。
|
/// |所有扇区圆心角相同,仅通过半径展现数据大小。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Area
|
Area
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of line chart.
|
/// the type of line chart.
|
||||||
/// 折线图样式类型
|
/// |折线图样式类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum LineType
|
public enum LineType
|
||||||
{
|
{
|
||||||
@@ -45,17 +45,17 @@ namespace XCharts.Runtime
|
|||||||
Smooth,
|
Smooth,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// step line.
|
/// step line.
|
||||||
/// 阶梯线图:当前点。
|
/// |阶梯线图:当前点。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
StepStart,
|
StepStart,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// step line.
|
/// step line.
|
||||||
/// 阶梯线图:当前点和下一个点的中间。
|
/// |阶梯线图:当前点和下一个点的中间。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
StepMiddle,
|
StepMiddle,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// step line.
|
/// step line.
|
||||||
/// 阶梯线图:下一个拐点。
|
/// |阶梯线图:下一个拐点。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
StepEnd
|
StepEnd
|
||||||
}
|
}
|
||||||
@@ -101,27 +101,27 @@ namespace XCharts.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Take a peak. When the average value of the filter point is greater than or equal to 'sampleAverage',
|
/// 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.
|
/// take the maximum value; If you do it the other way around, you get the minimum.
|
||||||
/// 取峰值。
|
/// |取峰值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Peak,
|
Peak,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Take the average of the filter points.
|
/// Take the average of the filter points.
|
||||||
/// 取过滤点的平均值。
|
/// |取过滤点的平均值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Average,
|
Average,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Take the maximum value of the filter point.
|
/// Take the maximum value of the filter point.
|
||||||
/// 取过滤点的最大值。
|
/// |取过滤点的最大值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Max,
|
Max,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Take the minimum value of the filter point.
|
/// Take the minimum value of the filter point.
|
||||||
/// 取过滤点的最小值。
|
/// |取过滤点的最小值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Min,
|
Min,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Take the sum of the filter points.
|
/// Take the sum of the filter points.
|
||||||
/// 取过滤点的和。
|
/// |取过滤点的和。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Sum
|
Sum
|
||||||
}
|
}
|
||||||
@@ -246,12 +246,12 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The index of serie.
|
/// The index of serie.
|
||||||
/// 系列索引。
|
/// |系列索引。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int index { get { return m_Index; } internal set { m_Index = value; } }
|
public int index { get { return m_Index; } internal set { m_Index = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show serie in chart.
|
/// Whether to show serie in chart.
|
||||||
/// 系列是否显示在图表上。
|
/// |系列是否显示在图表上。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show
|
public bool show
|
||||||
{
|
{
|
||||||
@@ -260,7 +260,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the chart coord system of serie.
|
/// the chart coord system of serie.
|
||||||
/// 使用的坐标系。
|
/// |使用的坐标系。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string coordSystem
|
public string coordSystem
|
||||||
{
|
{
|
||||||
@@ -269,7 +269,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of serie.
|
/// the type of serie.
|
||||||
/// 系列类型。
|
/// |系列类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string serieType
|
public string serieType
|
||||||
{
|
{
|
||||||
@@ -278,7 +278,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Series name used for displaying in tooltip and filtering with legend.
|
/// Series name used for displaying in tooltip and filtering with legend.
|
||||||
/// 系列名称,用于 tooltip 的显示,legend 的图例筛选。
|
/// |系列名称,用于 tooltip 的显示,legend 的图例筛选。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string serieName
|
public string serieName
|
||||||
{
|
{
|
||||||
@@ -287,12 +287,12 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Legend name. When the serie name is not empty, the legend name is the series name; Otherwise, it is index.
|
/// Legend name. When the serie name is not empty, the legend name is the series name; Otherwise, it is index.
|
||||||
/// 图例名称。当系列名称不为空时,图例名称即为系列名称;反之则为索引index。
|
/// |图例名称。当系列名称不为空时,图例名称即为系列名称;反之则为索引index。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string legendName { get { return string.IsNullOrEmpty(serieName) ? ChartCached.IntToStr(index) : serieName; } }
|
public string legendName { get { return string.IsNullOrEmpty(serieName) ? ChartCached.IntToStr(index) : serieName; } }
|
||||||
/// <summary>
|
/// <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.
|
/// 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>
|
/// </summary>
|
||||||
public string stack
|
public string stack
|
||||||
{
|
{
|
||||||
@@ -301,7 +301,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the index of XAxis.
|
/// the index of XAxis.
|
||||||
/// 使用X轴的index。
|
/// |使用X轴的index。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int xAxisIndex
|
public int xAxisIndex
|
||||||
{
|
{
|
||||||
@@ -310,7 +310,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the index of YAxis.
|
/// the index of YAxis.
|
||||||
/// 使用Y轴的index。
|
/// |使用Y轴的index。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int yAxisIndex
|
public int yAxisIndex
|
||||||
{
|
{
|
||||||
@@ -319,7 +319,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Index of radar component that radar chart uses.
|
/// Index of radar component that radar chart uses.
|
||||||
/// 雷达图所使用的 radar 组件的 index。
|
/// |雷达图所使用的 radar 组件的 index。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int radarIndex
|
public int radarIndex
|
||||||
{
|
{
|
||||||
@@ -328,7 +328,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Index of vesel component that liquid chart uses.
|
/// Index of vesel component that liquid chart uses.
|
||||||
/// 水位图所使用的 vessel 组件的 index。
|
/// |水位图所使用的 vessel 组件的 index。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int vesselIndex
|
public int vesselIndex
|
||||||
{
|
{
|
||||||
@@ -337,7 +337,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Index of polar component that serie uses.
|
/// Index of polar component that serie uses.
|
||||||
/// 所使用的 polar 组件的 index。
|
/// |所使用的 polar 组件的 index。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int polarIndex
|
public int polarIndex
|
||||||
{
|
{
|
||||||
@@ -346,7 +346,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>s
|
/// <summary>s
|
||||||
/// Index of single axis component that serie uses.
|
/// Index of single axis component that serie uses.
|
||||||
/// 所使用的 singleAxis 组件的 index。
|
/// |所使用的 singleAxis 组件的 index。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int singleAxisIndex
|
public int singleAxisIndex
|
||||||
{
|
{
|
||||||
@@ -355,7 +355,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>s
|
/// <summary>s
|
||||||
/// Index of parallel coord component that serie uses.
|
/// Index of parallel coord component that serie uses.
|
||||||
/// 所使用的 parallel coord 组件的 index。
|
/// |所使用的 parallel coord 组件的 index。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int parallelIndex
|
public int parallelIndex
|
||||||
{
|
{
|
||||||
@@ -364,7 +364,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The min number of data to show in chart.
|
/// The min number of data to show in chart.
|
||||||
/// 系列所显示数据的最小索引
|
/// |系列所显示数据的最小索引
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int minShow
|
public int minShow
|
||||||
{
|
{
|
||||||
@@ -373,7 +373,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The max number of data to show in chart.
|
/// The max number of data to show in chart.
|
||||||
/// 系列所显示数据的最大索引
|
/// |系列所显示数据的最大索引
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int maxShow
|
public int maxShow
|
||||||
{
|
{
|
||||||
@@ -382,9 +382,9 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The max number of serie data cache.
|
/// The max number of serie data cache.
|
||||||
/// The first data will be remove when the size of serie data is larger then maxCache.
|
/// |The first data will be remove when the size of serie data is larger then maxCache.
|
||||||
/// default:0,unlimited.
|
/// |default:0,unlimited.
|
||||||
/// 系列中可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。
|
/// |系列中可缓存的最大数据量。默认为0没有限制,大于0时超过指定值会移除旧数据再插入新数据。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int maxCache
|
public int maxCache
|
||||||
{
|
{
|
||||||
@@ -394,7 +394,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the symbol of serie data item.
|
/// the symbol of serie data item.
|
||||||
/// 标记的图形。
|
/// |标记的图形。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SymbolStyle symbol
|
public SymbolStyle symbol
|
||||||
{
|
{
|
||||||
@@ -403,7 +403,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The type of line chart.
|
/// The type of line chart.
|
||||||
/// 折线图样式类型。
|
/// |折线图样式类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LineType lineType
|
public LineType lineType
|
||||||
{
|
{
|
||||||
@@ -412,7 +412,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the min pixel dist of sample.
|
/// the min pixel dist of sample.
|
||||||
/// 采样的最小像素距离,默认为0时不采样。当两个数据点间的水平距离小于改值时,开启采样,保证两点间的水平距离不小于改值。
|
/// |采样的最小像素距离,默认为0时不采样。当两个数据点间的水平距离小于改值时,开启采样,保证两点间的水平距离不小于改值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float sampleDist
|
public float sampleDist
|
||||||
{
|
{
|
||||||
@@ -421,7 +421,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of sample.
|
/// the type of sample.
|
||||||
/// 采样类型。当sampleDist大于0时有效。
|
/// |采样类型。当sampleDist大于0时有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SampleType sampleType
|
public SampleType sampleType
|
||||||
{
|
{
|
||||||
@@ -438,7 +438,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The style of line.
|
/// The style of line.
|
||||||
/// 线条样式。
|
/// |线条样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LineStyle lineStyle
|
public LineStyle lineStyle
|
||||||
{
|
{
|
||||||
@@ -463,7 +463,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The width of the bar. Adaptive when default 0.
|
/// The width of the bar. Adaptive when default 0.
|
||||||
/// 柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。
|
/// |柱条的宽度,不设时自适应。支持设置成相对于类目宽度的百分比。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float barWidth
|
public float barWidth
|
||||||
{
|
{
|
||||||
@@ -472,9 +472,9 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The gap between bars between different series, is a percent value like '0.3f' , which means 30% of the bar width, can be set as a fixed value.
|
/// The gap between bars between different series, is a percent value like '0.3f' , which means 30% of the bar width, can be set as a fixed value.
|
||||||
/// <para>Set barGap as '-1' can overlap bars that belong to different series, which is useful when making a series of bar be background.
|
/// |<para>Set barGap as '-1' can overlap bars that belong to different series, which is useful when making a series of bar be background.
|
||||||
/// In a single coodinate system, this attribute is shared by multiple 'bar' series.
|
/// |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,
|
/// |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.</para>
|
/// then it will be adopted by all 'bar' series in the coordinate system.</para>
|
||||||
/// 不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%)
|
/// 不同系列的柱间距离。为百分比(如 '0.3f',表示柱子宽度的 30%)
|
||||||
/// 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。
|
/// 如果想要两个系列的柱子重叠,可以设置 barGap 为 '-1f'。这在用柱子做背景的时候有用。
|
||||||
@@ -504,7 +504,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether offset when mouse click pie chart item.
|
/// Whether offset when mouse click pie chart item.
|
||||||
/// 鼠标点击时是否开启偏移,一般用在PieChart图表中。
|
/// |鼠标点击时是否开启偏移,一般用在PieChart图表中。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool pieClickOffset
|
public bool pieClickOffset
|
||||||
{
|
{
|
||||||
@@ -513,7 +513,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to show as Nightingale chart.
|
/// Whether to show as Nightingale chart.
|
||||||
/// 是否展示成南丁格尔图,通过半径区分数据大小。
|
/// |是否展示成南丁格尔图,通过半径区分数据大小。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public RoseType pieRoseType
|
public RoseType pieRoseType
|
||||||
{
|
{
|
||||||
@@ -522,7 +522,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// gap of item.
|
/// gap of item.
|
||||||
/// 间距。
|
/// |间距。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float gap
|
public float gap
|
||||||
{
|
{
|
||||||
@@ -531,7 +531,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the center of chart.
|
/// the center of chart.
|
||||||
/// 中心点。
|
/// |中心点。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float[] center
|
public float[] center
|
||||||
{
|
{
|
||||||
@@ -540,7 +540,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the radius of chart.
|
/// the radius of chart.
|
||||||
/// 半径。radius[0]表示内径,radius[1]表示外径。
|
/// |半径。radius[0]表示内径,radius[1]表示外径。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float[] radius
|
public float[] radius
|
||||||
{
|
{
|
||||||
@@ -597,7 +597,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The minimum angle of sector(0-360). It prevents some sector from being too small when value is small.
|
/// The minimum angle of sector(0-360). It prevents some sector from being too small when value is small.
|
||||||
/// 最小的扇区角度(0-360)。用于防止某个值过小导致扇区太小影响交互。
|
/// |最小的扇区角度(0-360)。用于防止某个值过小导致扇区太小影响交互。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float minAngle
|
public float minAngle
|
||||||
{
|
{
|
||||||
@@ -663,7 +663,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The start animation.
|
/// The start animation.
|
||||||
/// 起始动画。
|
/// |起始动画。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AnimationStyle animation
|
public AnimationStyle animation
|
||||||
{
|
{
|
||||||
@@ -672,7 +672,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The style of data item.
|
/// The style of data item.
|
||||||
/// 图形样式。
|
/// |图形样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ItemStyle itemStyle
|
public ItemStyle itemStyle
|
||||||
{
|
{
|
||||||
@@ -689,7 +689,7 @@ namespace XCharts.Runtime
|
|||||||
public bool showDataName { get { return m_ShowDataName; } set { m_ShowDataName = value; } }
|
public bool showDataName { get { return m_ShowDataName; } set { m_ShowDataName = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If clip the overflow on the coordinate system.
|
/// If clip the overflow on the coordinate system.
|
||||||
/// 是否裁剪超出坐标系部分的图形。
|
/// |是否裁剪超出坐标系部分的图形。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool clip
|
public bool clip
|
||||||
{
|
{
|
||||||
@@ -698,7 +698,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Show negative number as positive number.
|
/// Show negative number as positive number.
|
||||||
/// 将负数数值显示为正数。一般和`AxisLabel`的`showAsPositiveNumber`配合使用。仅在折线图和柱状图中有效。
|
/// |将负数数值显示为正数。一般和`AxisLabel`的`showAsPositiveNumber`配合使用。仅在折线图和柱状图中有效。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool showAsPositiveNumber
|
public bool showAsPositiveNumber
|
||||||
{
|
{
|
||||||
@@ -734,7 +734,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the left side of the container.
|
/// Distance between component and the left side of the container.
|
||||||
/// 组件离容器左侧的距离。
|
/// |组件离容器左侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float left
|
public float left
|
||||||
{
|
{
|
||||||
@@ -743,7 +743,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the right side of the container.
|
/// Distance between component and the right side of the container.
|
||||||
/// 组件离容器右侧的距离。
|
/// |组件离容器右侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float right
|
public float right
|
||||||
{
|
{
|
||||||
@@ -752,7 +752,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the top side of the container.
|
/// Distance between component and the top side of the container.
|
||||||
/// 组件离容器上侧的距离。
|
/// |组件离容器上侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float top
|
public float top
|
||||||
{
|
{
|
||||||
@@ -761,7 +761,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Distance between component and the bottom side of the container.
|
/// Distance between component and the bottom side of the container.
|
||||||
/// 组件离容器下侧的距离。
|
/// |组件离容器下侧的距离。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float bottom
|
public float bottom
|
||||||
{
|
{
|
||||||
@@ -770,7 +770,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to add new data at the head or at the end of the list.
|
/// Whether to add new data at the head or at the end of the list.
|
||||||
/// 添加新数据时是在列表的头部还是尾部加入。
|
/// |添加新数据时是在列表的头部还是尾部加入。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool insertDataToHead
|
public bool insertDataToHead
|
||||||
{
|
{
|
||||||
@@ -886,12 +886,12 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the serie is highlighted.
|
/// Whether the serie is highlighted.
|
||||||
/// 该系列是否高亮,一般由图例悬停触发。
|
/// |该系列是否高亮,一般由图例悬停触发。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool highlight { get; internal set; }
|
public bool highlight { get; internal set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the count of data list.
|
/// the count of data list.
|
||||||
/// 数据项个数。
|
/// |数据项个数。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int dataCount { get { return m_Data.Count; } }
|
public int dataCount { get { return m_Data.Count; } }
|
||||||
public bool nameDirty { get { return m_NameDirty; } }
|
public bool nameDirty { get { return m_NameDirty; } }
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace XCharts.Runtime
|
|||||||
this.isIgnoreBreak = ignore;
|
this.isIgnoreBreak = ignore;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[System.Serializable]
|
|
||||||
public class SerieContext
|
public class SerieContext
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace XCharts.Runtime
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A data item of serie.
|
/// A data item of serie.
|
||||||
/// 系列中的一个数据项。可存储数据名和1-n维个数据。
|
/// |系列中的一个数据项。可存储数据名和1-n维个数据。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class SerieData : ChildComponent
|
public class SerieData : ChildComponent
|
||||||
@@ -40,7 +40,7 @@ namespace XCharts.Runtime
|
|||||||
public override int index { get { return m_Index; } set { m_Index = value; } }
|
public override int index { get { return m_Index; } set { m_Index = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the name of data item.
|
/// the name of data item.
|
||||||
/// 数据项名称。
|
/// |数据项名称。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string name { get { return m_Name; } set { m_Name = value; } }
|
public string name { get { return m_Name; } set { m_Name = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -59,12 +59,12 @@ namespace XCharts.Runtime
|
|||||||
public float radius { get { return m_Radius; } set { m_Radius = value; } }
|
public float radius { get { return m_Radius; } set { m_Radius = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the data item is selected.
|
/// Whether the data item is selected.
|
||||||
/// 该数据项是否被选中。
|
/// |该数据项是否被选中。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool selected { get { return m_Selected; } set { m_Selected = value; } }
|
public bool selected { get { return m_Selected; } set { m_Selected = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the icon of data.
|
/// the icon of data.
|
||||||
/// 数据项图标样式。
|
/// |数据项图标样式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IconStyle iconStyle { get { return m_IconStyles.Count > 0 ? m_IconStyles[0] : null; } }
|
public IconStyle iconStyle { get { return m_IconStyles.Count > 0 ? m_IconStyles[0] : null; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -97,12 +97,12 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An arbitrary dimension data list of data item.
|
/// An arbitrary dimension data list of data item.
|
||||||
/// 可指定任意维数的数值列表。
|
/// |可指定任意维数的数值列表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<double> data { get { return m_Data; } set { m_Data = value; } }
|
public List<double> data { get { return m_Data; } set { m_Data = value; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// [default:true] Whether the data item is showed.
|
/// [default:true] Whether the data item is showed.
|
||||||
/// 该数据项是否要显示。
|
/// |该数据项是否要显示。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool show { get { return m_Show; } set { m_Show = value; } }
|
public bool show { get { return m_Show; } set { m_Show = value; } }
|
||||||
|
|
||||||
@@ -338,7 +338,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the maxinum value.
|
/// the maxinum value.
|
||||||
/// 最大值。
|
/// |最大值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double GetMaxData(bool inverse = false)
|
public double GetMaxData(bool inverse = false)
|
||||||
{
|
{
|
||||||
@@ -354,7 +354,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the mininum value.
|
/// the mininum value.
|
||||||
/// 最小值。
|
/// |最小值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double GetMinData(bool inverse = false)
|
public double GetMinData(bool inverse = false)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ namespace XCharts.Runtime
|
|||||||
public Image symbol { get; set; }
|
public Image symbol { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the data item is highlighted.
|
/// Whether the data item is highlighted.
|
||||||
/// 该数据项是否被高亮,一般由鼠标悬停或图例悬停触发高亮。
|
/// |该数据项是否被高亮,一般由鼠标悬停或图例悬停触发高亮。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool highlight { get; set; }
|
public bool highlight { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of line.
|
/// the type of line.
|
||||||
/// 坐标轴线类型。
|
/// |坐标轴线类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LineStyle.Type lineType
|
public LineStyle.Type lineType
|
||||||
{
|
{
|
||||||
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of line.
|
/// the width of line.
|
||||||
/// 坐标轴线宽。
|
/// |坐标轴线宽。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float lineWidth
|
public float lineWidth
|
||||||
{
|
{
|
||||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the length of line.
|
/// the length of line.
|
||||||
/// 坐标轴线长。
|
/// |坐标轴线长。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float lineLength
|
public float lineLength
|
||||||
{
|
{
|
||||||
@@ -53,7 +53,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of line.
|
/// the color of line.
|
||||||
/// 坐标轴线颜色。
|
/// |坐标轴线颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 lineColor
|
public Color32 lineColor
|
||||||
{
|
{
|
||||||
@@ -62,7 +62,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of split line.
|
/// the type of split line.
|
||||||
/// 分割线线类型。
|
/// |分割线线类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LineStyle.Type splitLineType
|
public LineStyle.Type splitLineType
|
||||||
{
|
{
|
||||||
@@ -71,7 +71,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of split line.
|
/// the width of split line.
|
||||||
/// 分割线线宽。
|
/// |分割线线宽。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float splitLineWidth
|
public float splitLineWidth
|
||||||
{
|
{
|
||||||
@@ -80,7 +80,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the length of split line.
|
/// the length of split line.
|
||||||
/// 分割线线长。
|
/// |分割线线长。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float splitLineLength
|
public float splitLineLength
|
||||||
{
|
{
|
||||||
@@ -89,7 +89,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of line.
|
/// the color of line.
|
||||||
/// 分割线线颜色。
|
/// |分割线线颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 splitLineColor
|
public Color32 splitLineColor
|
||||||
{
|
{
|
||||||
@@ -98,7 +98,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the length of tick.
|
/// the length of tick.
|
||||||
/// 刻度线线长。
|
/// |刻度线线长。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float tickLength
|
public float tickLength
|
||||||
{
|
{
|
||||||
@@ -107,7 +107,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of tick.
|
/// the width of tick.
|
||||||
/// 刻度线线宽。
|
/// |刻度线线宽。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float tickWidth
|
public float tickWidth
|
||||||
{
|
{
|
||||||
@@ -116,7 +116,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of tick.
|
/// the color of tick.
|
||||||
/// 坐标轴线颜色。
|
/// |坐标轴线颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 tickColor
|
public Color32 tickColor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the font of text.
|
/// the font of text.
|
||||||
/// 字体。
|
/// |字体。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Font font
|
public Font font
|
||||||
{
|
{
|
||||||
@@ -29,7 +29,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of text.
|
/// the color of text.
|
||||||
/// 文本颜色。
|
/// |文本颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color textColor
|
public Color textColor
|
||||||
{
|
{
|
||||||
@@ -38,7 +38,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of text.
|
/// the color of text.
|
||||||
/// 文本颜色。
|
/// |文本颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color textBackgroundColor
|
public Color textBackgroundColor
|
||||||
{
|
{
|
||||||
@@ -47,7 +47,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the font size of text.
|
/// the font size of text.
|
||||||
/// 文本字体大小。
|
/// |文本字体大小。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int fontSize
|
public int fontSize
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of border line.
|
/// the width of border line.
|
||||||
/// 边框线宽。
|
/// |边框线宽。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float borderWidth
|
public float borderWidth
|
||||||
{
|
{
|
||||||
@@ -26,7 +26,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of data line.
|
/// the width of data line.
|
||||||
/// 数据阴影线宽。
|
/// |数据阴影线宽。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float dataLineWidth
|
public float dataLineWidth
|
||||||
{
|
{
|
||||||
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of dataZoom data area.
|
/// the color of dataZoom data area.
|
||||||
/// 数据区域颜色。
|
/// |数据区域颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 fillerColor
|
public Color32 fillerColor
|
||||||
{
|
{
|
||||||
@@ -45,7 +45,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of dataZoom border.
|
/// the color of dataZoom border.
|
||||||
/// 边框颜色。
|
/// |边框颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 borderColor
|
public Color32 borderColor
|
||||||
{
|
{
|
||||||
@@ -54,7 +54,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of data area line.
|
/// the color of data area line.
|
||||||
/// 数据阴影的线条颜色。
|
/// |数据阴影的线条颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 dataLineColor
|
public Color32 dataLineColor
|
||||||
{
|
{
|
||||||
@@ -63,7 +63,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of data area line.
|
/// the color of data area line.
|
||||||
/// 数据阴影的填充颜色。
|
/// |数据阴影的填充颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 dataAreaColor
|
public Color32 dataAreaColor
|
||||||
{
|
{
|
||||||
@@ -72,7 +72,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the background color of datazoom.
|
/// the background color of datazoom.
|
||||||
/// 背景颜色。
|
/// |背景颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 backgroundColor
|
public Color32 backgroundColor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of text.
|
/// the color of text.
|
||||||
/// 文本颜色。
|
/// |文本颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color unableColor
|
public Color unableColor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of text.
|
/// the color of text.
|
||||||
/// 文本颜色。
|
/// |文本颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float lineWidth
|
public float lineWidth
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace XCharts.Runtime
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Theme.
|
/// Theme.
|
||||||
/// 主题相关配置。
|
/// |主题相关配置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Theme : ScriptableObject
|
public class Theme : ScriptableObject
|
||||||
{
|
{
|
||||||
@@ -44,7 +44,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the theme of chart.
|
/// the theme of chart.
|
||||||
/// 主题类型。
|
/// |主题类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ThemeType themeType
|
public ThemeType themeType
|
||||||
{
|
{
|
||||||
@@ -60,7 +60,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the contrast color of chart.
|
/// the contrast color of chart.
|
||||||
/// 对比色。
|
/// |对比色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 contrastColor
|
public Color32 contrastColor
|
||||||
{
|
{
|
||||||
@@ -69,7 +69,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the background color of chart.
|
/// the background color of chart.
|
||||||
/// 背景颜色。
|
/// |背景颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 backgroundColor
|
public Color32 backgroundColor
|
||||||
{
|
{
|
||||||
@@ -79,7 +79,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <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.
|
/// 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>
|
/// </summary>
|
||||||
public List<Color32> colorPalette { get { return m_ColorPalette; } set { m_ColorPalette = value; } }
|
public List<Color32> colorPalette { get { return m_ColorPalette; } set { m_ColorPalette = value; } }
|
||||||
public ComponentTheme common { get { return m_Common; } set { m_Common = value; } }
|
public ComponentTheme common { get { return m_Common; } set { m_Common = value; } }
|
||||||
@@ -141,7 +141,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the color of the specified index from the palette.
|
/// Gets the color of the specified index from the palette.
|
||||||
/// 获得调色盘对应系列索引的颜色值。
|
/// |获得调色盘对应系列索引的颜色值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="index">编号索引</param>
|
/// <param name="index">编号索引</param>
|
||||||
/// <returns>the color,or Color.clear when failed.颜色值,失败时返回Color.clear</returns>
|
/// <returns>the color,or Color.clear when failed.颜色值,失败时返回Color.clear</returns>
|
||||||
@@ -181,7 +181,7 @@ namespace XCharts.Runtime
|
|||||||
Dictionary<int, string> _colorDic = new Dictionary<int, string>();
|
Dictionary<int, string> _colorDic = new Dictionary<int, string>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the hexadecimal color string of the specified index from the palette.
|
/// Gets the hexadecimal color string of the specified index from the palette.
|
||||||
/// 获得指定索引的十六进制颜色值字符串。
|
/// |获得指定索引的十六进制颜色值字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="index"></param>
|
/// <param name="index"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@@ -216,7 +216,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// copy all configurations from theme.
|
/// copy all configurations from theme.
|
||||||
/// 复制主题的所有配置。
|
/// |复制主题的所有配置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="theme"></param>
|
/// <param name="theme"></param>
|
||||||
public void CopyTheme(Theme theme)
|
public void CopyTheme(Theme theme)
|
||||||
@@ -242,7 +242,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clear all custom configurations.
|
/// Clear all custom configurations.
|
||||||
/// 重置,清除所有自定义配置。
|
/// |重置,清除所有自定义配置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool ResetTheme()
|
public bool ResetTheme()
|
||||||
{
|
{
|
||||||
@@ -271,7 +271,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// default theme.
|
/// default theme.
|
||||||
/// 默认主题。
|
/// |默认主题。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public static void ResetToDefaultTheme(Theme theme)
|
public static void ResetToDefaultTheme(Theme theme)
|
||||||
@@ -297,7 +297,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// dark theme.
|
/// dark theme.
|
||||||
/// 暗主题。
|
/// |暗主题。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public static void ResetToDarkTheme(Theme theme)
|
public static void ResetToDarkTheme(Theme theme)
|
||||||
@@ -377,7 +377,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert the html string to color.
|
/// Convert the html string to color.
|
||||||
/// 将字符串颜色值转成Color。
|
/// |将字符串颜色值转成Color。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="hexColorStr"></param>
|
/// <param name="hexColorStr"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Theme.
|
/// Theme.
|
||||||
/// 主题相关配置。
|
/// |主题相关配置。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ThemeStyle : ChildComponent
|
public class ThemeStyle : ChildComponent
|
||||||
{
|
{
|
||||||
@@ -52,7 +52,7 @@ namespace XCharts.Runtime
|
|||||||
public bool show { get { return m_Show; } }
|
public bool show { get { return m_Show; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the theme of chart.
|
/// the theme of chart.
|
||||||
/// 主题类型。
|
/// |主题类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ThemeType themeType
|
public ThemeType themeType
|
||||||
{
|
{
|
||||||
@@ -71,7 +71,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the contrast color of chart.
|
/// the contrast color of chart.
|
||||||
/// 对比色。
|
/// |对比色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 contrastColor
|
public Color32 contrastColor
|
||||||
{
|
{
|
||||||
@@ -79,7 +79,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the background color of chart.
|
/// the background color of chart.
|
||||||
/// 背景颜色。
|
/// |背景颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 backgroundColor
|
public Color32 backgroundColor
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the custom background color of chart.
|
/// the custom background color of chart.
|
||||||
/// 自定义的背景颜色。
|
/// |自定义的背景颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 customBackgroundColor
|
public Color32 customBackgroundColor
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <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.
|
/// 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>
|
/// </summary>
|
||||||
public List<Color32> colorPalette
|
public List<Color32> colorPalette
|
||||||
{
|
{
|
||||||
@@ -121,7 +121,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the color of the specified index from the palette.
|
/// Gets the color of the specified index from the palette.
|
||||||
/// 获得调色盘对应系列索引的颜色值。
|
/// |获得调色盘对应系列索引的颜色值。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="index">编号索引</param>
|
/// <param name="index">编号索引</param>
|
||||||
/// <returns>the color,or Color.clear when failed.颜色值,失败时返回Color.clear</returns>
|
/// <returns>the color,or Color.clear when failed.颜色值,失败时返回Color.clear</returns>
|
||||||
@@ -181,7 +181,7 @@ namespace XCharts.Runtime
|
|||||||
Dictionary<int, string> _colorDic = new Dictionary<int, string>();
|
Dictionary<int, string> _colorDic = new Dictionary<int, string>();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the hexadecimal color string of the specified index from the palette.
|
/// Gets the hexadecimal color string of the specified index from the palette.
|
||||||
/// 获得指定索引的十六进制颜色值字符串。
|
/// |获得指定索引的十六进制颜色值字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="index"></param>
|
/// <param name="index"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@@ -202,7 +202,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert the html string to color.
|
/// Convert the html string to color.
|
||||||
/// 将字符串颜色值转成Color。
|
/// |将字符串颜色值转成Color。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="hexColorStr"></param>
|
/// <param name="hexColorStr"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the type of line.
|
/// the type of line.
|
||||||
/// 坐标轴线类型。
|
/// |坐标轴线类型。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LineStyle.Type lineType
|
public LineStyle.Type lineType
|
||||||
{
|
{
|
||||||
@@ -26,7 +26,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of line.
|
/// the width of line.
|
||||||
/// 指示线线宽。
|
/// |指示线线宽。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float lineWidth
|
public float lineWidth
|
||||||
{
|
{
|
||||||
@@ -35,7 +35,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of line.
|
/// the color of line.
|
||||||
/// 指示线颜色。
|
/// |指示线颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 lineColor
|
public Color32 lineColor
|
||||||
{
|
{
|
||||||
@@ -45,7 +45,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of line.
|
/// the color of line.
|
||||||
/// 区域指示的颜色。
|
/// |区域指示的颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 areaColor
|
public Color32 areaColor
|
||||||
{
|
{
|
||||||
@@ -54,7 +54,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the text color of tooltip cross indicator's axis label.
|
/// the text color of tooltip cross indicator's axis label.
|
||||||
/// 十字指示器坐标轴标签的文本颜色。
|
/// |十字指示器坐标轴标签的文本颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 labelTextColor
|
public Color32 labelTextColor
|
||||||
{
|
{
|
||||||
@@ -64,7 +64,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the background color of tooltip cross indicator's axis label.
|
/// the background color of tooltip cross indicator's axis label.
|
||||||
/// 十字指示器坐标轴标签的背景颜色。
|
/// |十字指示器坐标轴标签的背景颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 labelBackgroundColor
|
public Color32 labelBackgroundColor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the width of border.
|
/// the width of border.
|
||||||
/// 边框线宽。
|
/// |边框线宽。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float borderWidth
|
public float borderWidth
|
||||||
{
|
{
|
||||||
@@ -23,7 +23,7 @@ namespace XCharts.Runtime
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the color of dataZoom border.
|
/// the color of dataZoom border.
|
||||||
/// 边框颜色。
|
/// |边框颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 borderColor
|
public Color32 borderColor
|
||||||
{
|
{
|
||||||
@@ -33,7 +33,7 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the background color of visualmap.
|
/// the background color of visualmap.
|
||||||
/// 背景颜色。
|
/// |背景颜色。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Color32 backgroundColor
|
public Color32 backgroundColor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace XCharts.Runtime
|
|||||||
public static readonly Vector2 zeroVector2 = Vector2.zero;
|
public static readonly Vector2 zeroVector2 = Vector2.zero;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert the html string to color.
|
/// Convert the html string to color.
|
||||||
/// 将字符串颜色值转成Color。
|
/// |将字符串颜色值转成Color。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="hexColorStr"></param>
|
/// <param name="hexColorStr"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace XUGL
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// UGUI Graphics Library.
|
/// UGUI Graphics Library.
|
||||||
/// UGUI 图形库
|
/// |UGUI 图形库
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class UGL
|
public static class UGL
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user