mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-29 12:48:47 +00:00
增加Bar的realtimeSort支持实时排序
This commit is contained in:
@@ -305,6 +305,7 @@ namespace XCharts.Runtime
|
||||
[SerializeField] private float m_Top;
|
||||
[SerializeField] private float m_Bottom;
|
||||
[SerializeField] private bool m_InsertDataToHead;
|
||||
[SerializeField][Since("v3.14.0")] private bool m_RealtimeSort = false;
|
||||
|
||||
[SerializeField] private LineStyle m_LineStyle = new LineStyle();
|
||||
[SerializeField] private SerieSymbol m_Symbol = new SerieSymbol();
|
||||
@@ -983,6 +984,15 @@ namespace XCharts.Runtime
|
||||
set { if (PropertyUtil.SetStruct(ref m_MinShowLabelValue, value)) { SetVerticesDirty(); } }
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to enable realtime sorting, which is used for bar-racing effect. Currently only available in Bar.
|
||||
/// ||是否开启实时排序,用来实现动态排序图效果。目前仅在Bar中生效。
|
||||
/// </summary>
|
||||
public bool realtimeSort
|
||||
{
|
||||
get { return m_RealtimeSort; }
|
||||
set { if (PropertyUtil.SetStruct(ref m_RealtimeSort, value)) SetVerticesDirty(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 系列中的数据内容数组。SerieData可以设置1到n维数据。
|
||||
/// </summary>
|
||||
public List<SerieData> data { get { return m_Data; } }
|
||||
|
||||
Reference in New Issue
Block a user