2021-06-27 12:26:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
2022-03-04 22:17:32 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
2022-02-19 22:37:57 +08:00
|
|
|
|
namespace XCharts.Runtime
|
2021-06-27 12:26:20 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2021-12-12 18:05:26 +08:00
|
|
|
|
/// The delegate function for AxisLabel's formatter.
|
2022-03-24 08:37:06 +08:00
|
|
|
|
/// |AxisLabel的formatter自定义委托。
|
2021-06-27 12:26:20 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="labelIndex">label索引</param>
|
|
|
|
|
|
/// <param name="value">当前label对应的数值数据,Value轴或Time轴有效</param>
|
|
|
|
|
|
/// <param name="category">当前label对应的类目数据,Category轴有效</param>
|
|
|
|
|
|
/// <returns>最终显示的文本内容</returns>
|
2022-03-04 22:17:32 +08:00
|
|
|
|
public delegate string AxisLabelFormatterFunction(int labelIndex, double value, string category);
|
2021-06-27 12:26:20 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The delegate function for SerieLabel‘s formatter.
|
2022-03-24 08:37:06 +08:00
|
|
|
|
/// |SerieLabel的formatter自定义委托。
|
2021-06-27 12:26:20 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="dataIndex">数据索引</param>
|
|
|
|
|
|
/// <param name="value">数值</param>
|
|
|
|
|
|
/// <returns>最终显示的文本内容</returns>
|
2022-03-04 22:17:32 +08:00
|
|
|
|
public delegate string SerieLabelFormatterFunction(int dataIndex, double value);
|
|
|
|
|
|
public delegate float AnimationDelayFunction(int dataIndex);
|
|
|
|
|
|
public delegate float AnimationDurationFunction(int dataIndex);
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取标记大小的回调。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="data"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
public delegate float SymbolSizeFunction(List<double> data);
|
|
|
|
|
|
public delegate void CustomDrawGaugePointerFunction(VertexHelper vh, int serieIndex, int dataIndex, float currentAngle);
|
2021-06-27 12:26:20 +08:00
|
|
|
|
}
|