add tooltip delegate function: positionFunction

This commit is contained in:
monitor1394
2021-11-27 22:06:15 +08:00
parent cc72f303f1
commit 4d6e896d32
4 changed files with 25 additions and 3 deletions

View File

@@ -6,11 +6,13 @@
/* */
/************************************************/
using UnityEngine;
namespace XCharts
{
/// <summary>
/// The delegate function for AxisLabel's formatter. |
/// AxisLabel的formatter自定义委托。
/// AxisLabel的formatter自定义委托函数
/// </summary>
/// <param name="labelIndex">label索引</param>
/// <param name="value">当前label对应的数值数据Value轴或Time轴有效</param>
@@ -19,10 +21,16 @@ namespace XCharts
public delegate string DelegateAxisLabelFormatter(int labelIndex, double value, string category);
/// <summary>
/// The delegate function for SerieLabels formatter.
/// SerieLabel的formatter自定义委托。
/// SerieLabel的formatter自定义委托函数
/// </summary>
/// <param name="dataIndex">数据索引</param>
/// <param name="value">数值</param>
/// <returns>最终显示的文本内容</returns>
public delegate string DelegateSerieLabelFormatter(int dataIndex, double value);
/// <summary>
/// Tooltip的position自定义委托函数。
/// </summary>
/// <param name="pos">Tooltip的当前坐标</param>
/// <returns>Tooltip的最终坐标</returns>
public delegate Vector3 DelegateTooltipPosition(Vector3 pos);
}