This commit is contained in:
monitor1394
2022-03-24 21:48:53 +08:00
parent f597a3f116
commit 2e954490ec
21 changed files with 3187 additions and 2161 deletions

View File

@@ -18,35 +18,31 @@ namespace XCharts.Runtime
/// <summary>
/// Generally dataZoom component zoom or roam coordinate system through data filtering
/// and set the windows of axes internally.
/// |Its behaviours vary according to filtering mode settings.
/// |
/// dataZoom 的运行原理是通过 数据过滤 来达到 数据窗口缩放 的效果。数据过滤模式的设置不同,效果也不同。
/// Its behaviours vary according to filtering mode settings.
/// |dataZoom 的运行原理是通过 数据过滤 来达到 数据窗口缩放 的效果。数据过滤模式的设置不同,效果也不同。
/// </summary>
public enum FilterMode
{
/// <summary>
/// data that outside the window will be filtered, which may lead to some changes of windows of other axes.
/// For each data item, it will be filtered if one of the relevant dimensions is out of the window.
///
/// 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。
/// |当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。
/// </summary>
Filter,
/// <summary>
/// data that outside the window will be filtered, which may lead to some changes of windows of other axes.
/// For each data item, it will be filtered only if all of the relevant dimensions are out of the same side of the window.
///
/// 当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。
/// |当前数据窗口外的数据,被 过滤掉。即 会 影响其他轴的数据范围。每个数据项,只有当全部维度都在数据窗口同侧外部,整个数据项才会被过滤掉。
/// </summary>
WeakFilter,
/// <summary>
/// data that outside the window will be set to NaN, which will not lead to changes of windows of other axes.
///
/// 当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。
/// |当前数据窗口外的数据,被 设置为空。即 不会 影响其他轴的数据范围。
/// </summary>
Empty,
/// <summary>
/// Do not filter data.
/// 不过滤数据,只改变数轴范围。
/// |不过滤数据,只改变数轴范围。
/// </summary>
None
}
@@ -57,7 +53,8 @@ namespace XCharts.Runtime
{
//Value,
/// <summary>
/// percent value. 百分比
/// percent value.
/// |百分比。
/// </summary>
Percent
}
@@ -137,8 +134,7 @@ namespace XCharts.Runtime
/// Whether built-in support is supported.
/// |Built into the coordinate system to allow the user to zoom in and out of the coordinate system by mouse dragging,
/// mouse wheel, finger swiping (on the touch screen).
/// |
/// 是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。
/// |是否支持内置。内置于坐标系中,使用户可以在坐标系上通过鼠标拖拽、鼠标滚轮、手指滑动(触屏上)来缩放或漫游坐标系。
/// </summary>
public bool supportInside
{
@@ -180,8 +176,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Whether to show data shadow, to indicate the data tendency in brief.
/// |default:true
/// 是否显示数据阴影。数据阴影可以简单地反应数据走势。
/// |是否显示数据阴影。数据阴影可以简单地反应数据走势。
/// </summary>
public bool showDataShadow
{
@@ -191,7 +186,6 @@ namespace XCharts.Runtime
/// <summary>
/// Whether to show detail, that is, show the detailed data information when dragging.
/// |是否显示detail即拖拽时候显示详细数值信息。
/// [default: false]
/// </summary>
public bool showDetail
{
@@ -200,8 +194,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Specify whether to lock the size of window (selected area).
/// |default:false
/// 是否锁定选择区域(或叫做数据窗口)的大小。
/// |是否锁定选择区域(或叫做数据窗口)的大小。
/// 如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。
/// </summary>
public bool zoomLock
@@ -211,8 +204,7 @@ namespace XCharts.Runtime
}
/// <summary>
/// Whether to show data shadow in dataZoom-silder component, to indicate the data tendency in brief.
/// |default:true
/// 拖动时,是否实时更新系列的视图。如果设置为 false则只在拖拽结束的时候更新。默认为true暂不支持修改。
/// |拖动时,是否实时更新系列的视图。如果设置为 false则只在拖拽结束的时候更新。默认为true暂不支持修改。
/// </summary>
public bool realtime { get { return true; } }
/// <summary>
@@ -253,9 +245,8 @@ namespace XCharts.Runtime
}
/// <summary>
/// Distance between dataZoom component and the bottom side of the container.
/// |bottom value is a instant pixel value like 10 or float value [0-1].
/// |default:10
/// 组件离容器下侧的距离。
/// bottom value is a instant pixel value like 10 or float value [0-1].
/// |组件离容器下侧的距离。
/// </summary>
public float bottom
{
@@ -264,9 +255,8 @@ namespace XCharts.Runtime
}
/// <summary>
/// Distance between dataZoom component and the top side of the container.
/// |top value is a instant pixel value like 10 or float value [0-1].
/// |default:10
/// 组件离容器上侧的距离。
/// top value is a instant pixel value like 10 or float value [0-1].
/// |组件离容器上侧的距离。
/// </summary>
public float top
{
@@ -275,9 +265,8 @@ namespace XCharts.Runtime
}
/// <summary>
/// Distance between dataZoom component and the left side of the container.
/// |left value is a instant pixel value like 10 or float value [0-1].
/// |default:10
/// 组件离容器左侧的距离。
/// left value is a instant pixel value like 10 or float value [0-1].
/// |组件离容器左侧的距离。
/// </summary>
public float left
{
@@ -286,9 +275,8 @@ namespace XCharts.Runtime
}
/// <summary>
/// Distance between dataZoom component and the right side of the container.
/// |right value is a instant pixel value like 10 or float value [0-1].
/// |default:10
/// 组件离容器右侧的距离。
/// right value is a instant pixel value like 10 or float value [0-1].
/// |组件离容器右侧的距离。
/// </summary>
public float right
{
@@ -297,7 +285,6 @@ namespace XCharts.Runtime
}
/// <summary>
/// Use absolute value or percent value in DataZoom.start and DataZoom.end.
/// |default:RangeMode.Percent.
/// |取绝对值还是百分比。
/// </summary>
public RangeMode rangeMode
@@ -307,7 +294,6 @@ namespace XCharts.Runtime
}
/// <summary>
/// The start percentage of the window out of the data extent, in the range of 0 ~ 100.
/// |[default:30].
/// |数据窗口范围的起始百分比。范围是0 ~ 100。
/// </summary>
public float start
@@ -317,7 +303,6 @@ namespace XCharts.Runtime
}
/// <summary>
/// The end percentage of the window out of the data extent, in the range of 0 ~ 100.
/// |default:70
/// 数据窗口范围的结束百分比。范围是0 ~ 100。
/// </summary>
public float end
@@ -336,22 +321,19 @@ namespace XCharts.Runtime
}
/// <summary>
/// The sensitivity of dataZoom scroll.
/// |The larger the number, the more sensitive it is.
/// |default:10
/// 缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。
/// The larger the number, the more sensitive it is.
/// |缩放区域组件的敏感度。值越高每次缩放所代表的数据越多。
/// </summary>
public float scrollSensitivity
{
get { return m_ScrollSensitivity; }
set { if (PropertyUtil.SetStruct(ref m_ScrollSensitivity, value)) SetVerticesDirty(); }
}
/// <summary>
/// Specify whether the layout of dataZoom component is horizontal or vertical. What's more,
/// it indicates whether the horizontal axis or vertical axis is controlled by default in catesian coordinate system.
/// |布局方式是横还是竖。不仅是布局方式,对于直角坐标系而言,也决定了,缺省情况控制横向数轴还是纵向数轴。
/// </summary>
/// <value></value>
public Orient orient
{
get { return m_Orient; }